/* ==========================================================================
   SKNCode website 2026: interactive tools (treatment quiz, treatment map, Ask SKNCode)
   Loaded only on /find-your-treatment/, /treatment-map/ and /ask-skncode/.
   Same rules as the site: pills for controls, 24px cards, arches for photos.
   ========================================================================== */

/* ---------- hero and the three-way switch ---------- */
.th { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vh, 48px) var(--gut) clamp(28px, 4vh, 44px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 6vw, 110px); align-items: end; }
.th-copy { display: grid; gap: 22px; }
.th-copy .eyebrow { margin-bottom: 0; }
.th-copy h1 { max-width: 14ch; }
.tnav { display: grid; gap: 12px; justify-items: start; }
.tnav-k { font: 600 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.tnav-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--cream); }
.tnav-row a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.tnav-row a svg { width: 17px; height: 17px; }
.tnav-row a:hover { color: var(--wine); }
.tnav-row a[aria-current] { background: var(--wine); color: #fff; }

/* ---------- stage ---------- */
.tool { padding-bottom: clamp(56px, 9vh, 110px); }
.stage > * { min-width: 0; }
.stage { position: relative; border-radius: calc(var(--r) + 10px); background: var(--cream); padding: clamp(16px, 2.4vw, 34px); display: grid; gap: clamp(20px, 3vw, 44px); }
.qz-q { font: 300 clamp(28px, 2.7vw, 44px)/1.08 var(--font); letter-spacing: -.03em; color: var(--ink); max-width: 26ch; }
.qz-nav .btn[hidden], .gate-foot .btn[hidden] { display: none; }
.page-finder .float, .page-map .float, .page-assistant .float { display: none; }
.qz-q em { font-style: italic; color: var(--wine); }
.qz-hint { margin-top: 12px; color: var(--text); font-size: 16px; }
.mp-label { font: 600 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }

/* ---------- quiz ---------- */
.qz { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); min-height: 640px; }
.qz-side { display: grid; grid-template-rows: auto 1fr; gap: 24px; align-content: start; }
.qz-arch { aspect-ratio: 4 / 3.7; }
.qz-arch img { opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.qz-arch img.is-on { opacity: 1; transform: none; }
.qz-steps { display: grid; gap: 2px; counter-reset: st; padding: 0 6px; }
.qz-steps li { counter-increment: st; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 15px; color: var(--taupe); transition: color .3s; }
.qz-steps li::before { content: counter(st, decimal-leading-zero); font: 500 12px/1 var(--font); letter-spacing: .08em; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); transition: background-color .3s, color .3s, border-color .3s; }
.qz-steps li.is-done { color: var(--ink-2); }
.qz-steps li.is-done::before { content: "✓"; background: var(--white); border-color: var(--white); color: var(--wine); }
.qz-steps li.is-on { color: var(--ink); font-weight: 500; }
.qz-steps li.is-on::before { background: var(--wine); border-color: var(--wine); color: #fff; }
.qz-main { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: var(--r); padding: clamp(22px, 3vw, 48px); box-shadow: 0 30px 60px -48px rgba(42, 0, 10, .45); }
.qz-top { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(26px, 4vh, 40px); }
.qz-count { font: 600 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); white-space: nowrap; }
.qz-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 0; background: var(--wine); transition: width .6s var(--ease); }
.qz-step { display: none; }
.qz-step.is-on { display: block; animation: qzIn .55s var(--ease) both; }
.qz-step.is-back { animation-name: qzBack; }
@keyframes qzIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes qzBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.qz-step .opts { margin-top: clamp(22px, 3.4vh, 34px); }
.qz-msg { min-height: 22px; margin-top: 14px; font-size: 14px; color: var(--wine); }
.qz-nav { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; gap: 12px; }
.qz-nav [data-qz-next] { margin-left: auto; }
.qz-nav .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* options: tiles, rows and chips */
.opts { display: grid; gap: 12px; }
.opts-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); }
.opts-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.opts-rows { grid-template-columns: 1fr; max-width: 560px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .chip-opt input, .seg input, .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-in { position: relative; display: grid; gap: 6px; min-height: 100%; padding: 20px 52px 20px 22px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--white); transition: border-color .3s, box-shadow .3s, background-color .3s, transform .3s var(--ease); }
.opt-in b { font: 500 17px/1.25 var(--font); color: var(--ink); }
.opt-in small { font-size: 14px; line-height: 1.45; color: var(--text); }
.opt-tick { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: transparent; transition: background-color .3s, border-color .3s, color .3s; }
.opt-tick svg { width: 13px; height: 13px; }
.opt:hover .opt-in { border-color: var(--taupe); }
.opt input:focus-visible + .opt-in { outline: 2px solid var(--wine); outline-offset: 3px; }
.opt input:checked + .opt-in { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); background: #FFFCF8; }
.opt input:checked + .opt-in .opt-tick { background: var(--wine); border-color: var(--wine); color: #fff; }
.opt:active .opt-in { transform: scale(.985); }
.opts-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.opts-chips[hidden] { display: none; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt > span, .chip-btn { display: inline-flex; align-items: center; gap: 0; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 15px; color: var(--ink-2); transition: border-color .3s, background-color .3s, color .3s, gap .3s var(--ease), padding .3s var(--ease); }
.chip-opt svg, .chip-btn svg { width: 0; height: 15px; opacity: 0; transition: width .3s var(--ease), opacity .3s; }
.chip-opt:hover > span, .chip-btn:hover { border-color: var(--wine); color: var(--wine); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.chip-opt input:checked + span, .chip-btn[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; gap: 8px; padding-left: 16px; }
.chip-opt input:checked + span svg, .chip-btn[aria-pressed="true"] svg { width: 15px; opacity: 1; }
.chip-opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.chip-n { display: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream); margin-top: 22px; }
.seg label, .seg button { position: relative; cursor: pointer; }
.seg span, .seg button { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.seg input:checked + span, .seg button[aria-selected="true"] { background: var(--white); color: var(--wine); box-shadow: 0 6px 16px -10px rgba(42, 0, 10, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
[data-step="laser"] .opts-chips { margin-top: 20px; }

/* ---------- lead form (shared) ---------- */
.gate { display: grid; gap: 22px; }
.gate-head { display: grid; gap: 12px; }
.gate-title { font: 300 clamp(28px, 2.7vw, 44px)/1.08 var(--font); letter-spacing: -.03em; color: var(--ink); }
.gate-title em { font-style: italic; color: var(--wine); }
.gate-head p { color: var(--text); max-width: 52ch; }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 7px; align-content: start; }
.fld label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.fld input { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--white); font: 400 16px/1 var(--font); color: var(--ink); transition: border-color .3s, box-shadow .3s; }
.fld input:hover { border-color: var(--taupe); }
.fld input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(71, 0, 18, .1); }
.fld.is-bad input { border-color: #A3122E; }
.fld-err { font-size: 13px; color: #A3122E; }
.gate-checks { display: grid; gap: 10px; }
.chk { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.chk a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.chk-box { width: 22px; height: 22px; flex: none; margin-top: 1px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); background: var(--white); color: transparent; transition: background-color .25s, border-color .25s, color .25s; }
.chk-box svg { width: 13px; height: 13px; }
.chk input:checked + .chk-box { background: var(--wine); border-color: var(--wine); color: #fff; }
.chk input:focus-visible + .chk-box { outline: 2px solid var(--wine); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gate-err { padding: 12px 16px; border-radius: 12px; background: rgba(163, 18, 46, .07); color: #A3122E; font-size: 14.5px; }
.gate-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gate-foot [data-gate-submit] { margin-left: auto; }
.gate-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.gate-note svg { width: 15px; height: 15px; color: var(--wine); }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy svg { animation: spinA 1s linear infinite; }
@keyframes spinA { 50% { transform: translateX(4px); opacity: .3; } }

/* ---------- plan (results) ---------- */
.tplan { margin-top: clamp(40px, 7vh, 80px); outline: none; }
.tplan[hidden] { display: none; }
.tplan.is-in > * { animation: planIn .8s var(--ease) both; }
.tplan.is-in > *:nth-child(2) { animation-delay: .08s; }
.tplan.is-in > *:nth-child(3) { animation-delay: .16s; }
.tplan.is-in > *:nth-child(4) { animation-delay: .24s; }
.tplan.is-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes planIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.plan-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 60px; align-items: end; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.plan-head h2 { max-width: 16ch; }
.plan-head .eyebrow { margin-bottom: 18px; }
.plan-side { display: grid; gap: 16px; justify-items: start; }
.plan-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-sum span { padding: 7px 13px; border-radius: 999px; background: var(--cream); font-size: 13.5px; color: var(--ink-2); }
.plan-label { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.plan-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plan-label:first-child { margin-top: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-zone + .plan-zone { margin-top: 10px; }
.plan-zone h3 { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 16px; font: 300 clamp(26px, 2.2vw, 36px)/1.1 var(--font); letter-spacing: -.025em; }
.plan-zone h3 small { font-size: 14px; letter-spacing: 0; color: var(--text); }
.plan-more { margin-top: 14px; }

/* recommendation card */
.rc { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px 26px 22px; border-radius: var(--r); background: var(--cream); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s; }
.rc:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); background: var(--cream-2); }
.rc-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.rc-tag > span + span:not(.rc-badge)::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: middle; }
.rc-badge { padding: 5px 10px; border-radius: 999px; background: var(--wine); color: #fff; letter-spacing: .08em; }
.rc-name { margin: 18px 0 10px; font: 400 clamp(22px, 1.6vw, 26px)/1.16 var(--font); letter-spacing: -.022em; color: var(--ink); }
.rc-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rc-why { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--wine); }
.rc-why svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.rc-desc { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 13.5px; color: var(--text); }
.rc-facts span { display: inline-flex; align-items: center; gap: 6px; }
.rc-facts svg { width: 15px; height: 15px; color: var(--wine); }
.rc-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); }
.rc-price { display: flex; flex-direction: column; gap: 4px; }
.rc-price small { font-size: 13px; color: var(--text); }
.rc-price span { font: 300 30px/1 var(--font); letter-spacing: -.04em; color: var(--ink); }
.rc-price .rc-at { font: 400 15px/1.3 var(--font); letter-spacing: 0; color: var(--ink-2); }
.rc .btn { position: relative; z-index: 2; }
.rc { padding-bottom: 22px; }
.rc-foot { margin-top: auto; }
.rc-desc + .rc-foot, .rc-facts + .rc-foot { margin-top: 22px; }
.rc.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(28px, 5vw, 90px); min-height: 0; background: var(--white); border: 1px solid var(--line-2); padding: clamp(26px, 3vw, 44px); }
.rc.is-lead > * { grid-column: 1; }
.rc.is-lead .rc-name { font-size: clamp(32px, 3vw, 50px); letter-spacing: -.035em; font-weight: 300; margin-top: 16px; }
.rc.is-lead .rc-why { font-size: 15px; }
.rc.is-lead .rc-desc { -webkit-line-clamp: 4; font-size: 17px; max-width: 56ch; }
.rc.is-lead .rc-facts { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 0; padding: 18px 20px; border-radius: 16px; background: var(--cream); font-size: 14.5px; }
.rc.is-lead .rc-foot { grid-column: 2; grid-row: 3 / span 2; align-self: end; margin-top: 18px; }
.rc.is-lead:hover { background: var(--white); }

/* consultation band inside the plan */
.plan-next { margin-top: clamp(40px, 6vh, 64px); border-radius: calc(var(--r) + 8px); background: radial-gradient(90% 120% at 85% 20%, #6A0F2A 0%, var(--wine) 45%, var(--wine-deep) 100%); color: var(--cream); padding: clamp(28px, 4vw, 60px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 5vw, 80px); align-items: center; }
.plan-next h3 { font: 300 clamp(30px, 3vw, 50px)/1.04 var(--font); letter-spacing: -.035em; color: var(--cream); }
.plan-next h3 em { font-style: italic; }
.plan-next > div > p { margin-top: 14px; color: var(--on-wine-2); max-width: 40ch; }
.plan-next .eyebrow { margin-bottom: 18px; }
.plan-cons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-cons li { display: grid; grid-template-columns: 1fr; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; background: rgba(246, 242, 233, .08); border: 1px solid rgba(246, 242, 233, .14); }
.plan-cons b { font-weight: 500; font-size: 15.5px; color: #fff; line-height: 1.3; }
.plan-cons span { font-size: 13.5px; line-height: 1.45; color: var(--on-wine-2); }
.plan-btns { margin-top: 18px; }
.plan-note { margin-top: 18px; font-size: 13.5px; color: var(--text); max-width: 80ch; }

/* ---------- treatment map ---------- */
.mp { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
.mp-fig { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 12px; border-radius: var(--r); background: radial-gradient(60% 55% at 50% 48%, #F8F3EA 0%, var(--cream-2) 100%); padding: 18px 18px 16px; min-height: 640px; }
.seg-fig { margin-top: 0; background: rgba(255, 255, 255, .6); }
.fig { position: relative; width: 100%; align-self: center; }
.fig[hidden] { display: none; }
.fig-face { max-width: 470px; }
.fig-body { max-width: 360px; }
.fig-svg { width: 100%; height: auto; overflow: visible; }
.fig-skin { fill: #fff; stroke: #8C7477; stroke-width: 1.3; }
.fig-hair { fill: #E7DCCB; stroke: #8C7477; stroke-width: 1.3; }
.fig-line { fill: none; stroke: #8C7477; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fig-soft { stroke-opacity: .5; }
.fig-thin { stroke-width: .9; }
.fig-lip { fill: #F1DFDC; stroke: #8C7477; stroke-width: 1.3; }
.fig.is-in .fig-svg { animation: figIn 1s var(--ease) both; }
@keyframes figIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.hs { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; z-index: 2; }
.hs-dot { position: relative; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px var(--wine), 0 6px 14px -4px rgba(71, 0, 18, .5); transition: transform .35s var(--ease), background-color .3s; }
.hs-dot::after { content: ""; position: absolute; inset: -7px; border-radius: inherit; border: 1px solid var(--wine); opacity: 0; animation: hsPulse 2.6s var(--ease) infinite; }
.hs:nth-child(3n) .hs-dot::after { animation-delay: .9s; }
.hs:nth-child(3n+1) .hs-dot::after { animation-delay: 1.7s; }
@keyframes hsPulse { 0% { opacity: .7; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
.hs-label { position: absolute; left: calc(100% - 4px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.hs.is-left .hs-label { left: auto; right: calc(100% - 4px); transform: translate(-6px, -50%); }
.hs:hover .hs-label, .hs:focus-visible .hs-label { opacity: 1; transform: translate(10px, -50%); }
.hs.is-left:hover .hs-label, .hs.is-left:focus-visible .hs-label { transform: translate(-10px, -50%); }
.hs:hover .hs-dot { transform: scale(1.2); }
.hs[aria-pressed="true"] .hs-dot { background: var(--wine); transform: scale(1.15); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--wine), 0 8px 18px -4px rgba(71, 0, 18, .6); }
.hs[aria-pressed="true"] .hs-dot::after { animation: none; }
.hs[aria-pressed="true"] .hs-label { opacity: 1; background: var(--wine); transform: translate(10px, -50%); }
.hs.is-left[aria-pressed="true"] .hs-label { transform: translate(-10px, -50%); }
.hs:focus-visible { outline: none; }
.hs:focus-visible .hs-dot { outline: 2px solid var(--ink); outline-offset: 6px; }
.mp-tip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.mp-tip svg { width: 15px; height: 15px; color: var(--wine); }
.mp-panel { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); padding: clamp(22px, 2.6vw, 40px); box-shadow: 0 30px 60px -48px rgba(42, 0, 10, .45); }
.mp-pick { display: flex; flex-direction: column; flex: 1; }
.mp-pick[hidden], .mp-gate[hidden] { display: none; }
.mp-group { margin-top: 26px; display: grid; gap: 12px; }
.mp-group .opts-chips { gap: 8px; }
.mp-group .chip-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.mp-group .chip-btn[aria-pressed="true"] { padding-left: 13px; }
.mp-sum { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mp-count { font-size: 15px; color: var(--text); }
.mp-count b { color: var(--ink); font-weight: 600; }
.mp-sum .btn[disabled] { opacity: .4; pointer-events: none; }
.mp-gate { animation: qzIn .5s var(--ease) both; }

/* ---------- Ask SKNCode ---------- */
.ask { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.ask-side { display: grid; gap: 24px; align-content: start; }
.ask-arch { aspect-ratio: 4 / 4.4; }
.ask-about { display: grid; gap: 12px; justify-items: start; padding: 0 6px; }
.ask-about p { color: var(--ink-2); font-size: 15.5px; }
.ask-about .ask-small { font-size: 13.5px; color: var(--text); }
.ask-about .btn { margin-top: 6px; }
.ask-about .btn svg { width: 17px; height: 17px; }
.ask-main { display: flex; flex-direction: column; min-width: 0; height: clamp(560px, 76vh, 760px); background: var(--white); border-radius: var(--r); box-shadow: 0 30px 60px -48px rgba(42, 0, 10, .45); overflow: hidden; }
.ask-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ask-head b { display: block; font-weight: 600; font-size: 15.5px; }
.ask-head small { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); }
.ask-on { width: 7px; height: 7px; border-radius: 999px; background: #3F8F5A; box-shadow: 0 0 0 3px rgba(63, 143, 90, .16); }
.ask-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--cream); }
.ask-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 26px clamp(16px, 2.4vw, 30px) 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.ask-log:focus-visible { outline-offset: -4px; }
.msg { display: flex; gap: 10px; max-width: 86%; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg .ask-av { width: 30px; height: 30px; margin-top: 2px; }
.msg .ask-av img { width: 16px; height: 16px; }
.msg-b { padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--cream); color: var(--ink); font-size: 15.5px; line-height: 1.6; min-width: 0; }
.msg-b p + p, .msg-b p + ul, .msg-b ul + p { margin-top: 10px; }
.msg-b ul { display: grid; gap: 8px; }
.msg-b li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--white); }
.msg-b li a { font-weight: 600; color: var(--ink); }
.msg-b li a:hover { color: var(--wine); }
.msg-b li small { font-size: 13.5px; color: var(--text); }
.msg-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--wine); border-bottom: 1px solid rgba(71, 0, 18, .25); padding-bottom: 2px; }
.msg-link svg { width: 14px; height: 14px; }
.msg-link:hover { border-color: var(--wine); }
.msg.is-me { align-self: flex-end; }
.msg.is-me .msg-b { background: var(--wine); color: #fff; border-radius: 20px 20px 6px 20px; }
.msg.is-wide { max-width: 100%; width: 100%; }
.msg.is-wide .msg-b { flex: 1; background: var(--white); border: 1px solid var(--line-2); padding: clamp(18px, 2vw, 28px); border-radius: 22px; }
.msg.is-wide .gate-title { font-size: clamp(24px, 2vw, 32px); }
.msg.is-wide .gate-grid { gap: 12px; }
.msg.is-wide .fld input { height: 48px; }
.ask-sugs { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 40px; animation: msgIn .45s var(--ease) both; }
.ask-sugs button, .ask-sugs a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 13.5px; line-height: 1.25; color: var(--ink-2); text-align: left; transition: border-color .3s, color .3s, background-color .3s; }
.ask-sugs button:hover, .ask-sugs a:hover { border-color: var(--wine); color: var(--wine); }
.ask-sugs a.is-act { background: var(--wine); border-color: var(--wine); color: #fff; }
.ask-sugs a.is-act:hover { background: var(--wine-2); color: #fff; }
.ask-sugs svg { width: 15px; height: 15px; }
.typing { display: inline-flex; gap: 5px; padding: 18px 20px; }
.typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--taupe); animation: dot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ask-bar { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--white); }
.ask-bar input { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--cream); font: 400 16px/1 var(--font); color: var(--ink); transition: border-color .3s, background-color .3s; }
.ask-bar input:focus { outline: none; border-color: var(--wine); background: #fff; }
.ask-bar input:disabled { opacity: .55; }
.ask-send { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--wine); color: #fff; transition: background-color .3s, transform .3s var(--ease); }
.ask-send:hover { background: var(--wine-2); }
.ask-send:active { transform: scale(.94); }
.ask-send svg { width: 20px; height: 20px; }
.ask-send:disabled { opacity: .45; pointer-events: none; }
.ask-ok { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ask-ok svg { width: 16px; height: 16px; color: #3F8F5A; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz, .ask { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .plan-next { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .th { grid-template-columns: 1fr; align-items: start; }
  .qz, .mp, .ask { grid-template-columns: 1fr; }
  .qz { min-height: 0; }
  .qz-side { display: none; }
  .ask-side { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
  .ask-arch { aspect-ratio: 1; border-radius: 999px; }
  .ask-about { padding: 0; }
  .ask-about p, .ask-about .ask-small { display: none; }
  .ask-about .btn { margin: 0; white-space: normal; height: auto; min-height: 42px; padding: 8px 16px; text-align: left; }
  .mp-fig { min-height: 0; }
  .plan-head { grid-template-columns: 1fr; }
  .rc.is-lead { display: flex; flex-direction: column; }
  .rc.is-lead .rc-facts { padding: 0; background: none; margin-top: 16px; }
  .rc.is-lead .rc-facts, .rc.is-lead .rc-foot { align-self: stretch; }
  .plan-cons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .page-finder .float-social, .page-map .float-social, .page-assistant .float-social { display: none; }
  .ask-head { padding: 14px 16px; }
  .ask-bar { padding: 10px; }
  .stage { border-radius: var(--r); padding: 10px; }
  .qz-main, .mp-panel { padding: 22px 18px; border-radius: 18px; }
  .gate-grid { grid-template-columns: 1fr; }
  .tnav-row { border-radius: 22px; }
  .tnav-row a { height: 40px; padding: 0 14px; font-size: 14px; }
  .opt-in { padding: 16px 48px 16px 18px; }
  .ask-main { height: 78vh; border-radius: 18px; }
  .msg { max-width: 94%; }
  .ask-sugs { padding-left: 0; }
  .hs-label { font-size: 12px; padding: 6px 10px; }
  .qz-nav .btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-step.is-on, .tplan.is-in > *, .msg, .ask-sugs, .fig.is-in .fig-svg, .mp-gate { animation: none; }
  .hs-dot::after { animation: none; }
}

/* price rows in answers */
.msg-b .msg-rows { gap: 0; margin-top: 10px; padding: 4px 14px; border-radius: 14px; background: var(--white); }
.msg-b .msg-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-radius: 0; background: none; font-size: 14.5px; border-top: 1px solid var(--line); }
.msg-b .msg-rows li:first-child { border-top: 0; }
.msg-b .msg-rows b { font-weight: 600; color: var(--ink); text-align: right; max-width: 62%; }
