/* Next Location Plan: additions on top of site.css (Brand Standards No. 2, Med Spa edition). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Landing */
.stat-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); border: 1px solid var(--ink); }
.stat { display: grid; align-content: start; gap: 10px; padding: 24px 22px; border-right: 1px solid var(--ink); }
.stat p { margin: 0; font-size: 17px; }
.stat .fig { font: 900 clamp(56px, 7vw, 88px)/.85 var(--display); font-stretch: 125%; letter-spacing: -.045em; }
.stat-copy { display: grid; align-content: center; gap: 14px; padding: 24px clamp(20px, 3vw, 36px); }
.stat-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.stat-copy p { margin: 0; max-width: 46ch; color: var(--graphite); font-size: 18px; }
@media (max-width: 900px) {
  .stat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat-copy { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
}
.close-cta { display: grid; justify-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 64px); text-align: center; }

/* Application: full-screen, one question per screen */
body.app-open { overflow: hidden; }
/* If a phone ever shows a sliver past the overlay, show paper, not the landing page. */
body.app-covered > header, body.app-covered > footer, body.app-covered main > section:not(#apply) { visibility: hidden; }
html { background: var(--paper); }
.app { position: fixed; inset: 0 0 auto; top: var(--vvt, 0px); z-index: 40; height: 100vh; height: var(--vvh, 100dvh); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--paper); }
.app[hidden] { display: none; }
.app-top { padding-top: max(12px, env(safe-area-inset-top)); }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-bar .label { color: var(--graphite); }
.app-x { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .app-x:hover { background: var(--ink); color: var(--paper); } }
.segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding-block: 12px 4px; }
.segs span { height: 6px; overflow: hidden; background: var(--paper-2); }
.segs i { display: block; width: 0; height: 100%; background: var(--ink); transition: width .3s ease-out; }

#plan-form { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.stage { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.stage-in { display: grid; align-content: center; gap: 14px; min-height: 100%; padding-block: clamp(24px, 6vh, 72px); box-sizing: border-box; }
.qnum { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.part { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.part[hidden] { display: none; }
.screen { display: grid; gap: 14px; }
.screen[hidden] { display: none; }
.screen.in { animation: rise .32s cubic-bezier(.2, .8, .2, 1); }
.screen.in.back { animation-name: drop; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }

.screen > .legend, .screen > .field > label, .screen > .field > .legend {
  margin: 0; max-width: 30ch; font: 700 clamp(23px, 3.3vw, 34px)/1.16 var(--display); font-stretch: 125%; letter-spacing: -.022em; text-wrap: balance;
}
.screen .two { margin-top: 6px; align-items: start; }
.screen .two .field > label { font: 600 14px/1.3 var(--sans); }
.screen .field { gap: 10px; }
.why { margin: 0; color: var(--graphite); font-size: 16px; }
.screen .field input { padding: 15px 16px; font-size: 18px; }
.field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.45 var(--sans); resize: vertical; min-height: 132px; box-sizing: border-box; }
.field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.field.bad textarea { border-width: 2px; padding: 14px 15px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }

.screen .choices { display: grid; gap: 8px; max-width: 520px; margin-top: 4px; counter-reset: ch; }
.screen .choices label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--paper); font-size: 17px; counter-increment: ch; }
.screen .choices label::before { content: counter(ch, upper-alpha); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid currentColor; font: 600 12px/1 var(--sans); }
.screen .choices label:has(input:checked)::before { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .choices label:hover { background: var(--paper-2); } .choices label:has(input:checked):hover { background: var(--ink); } }
.field.bad .choices label { border-width: 2px; padding: 12px 15px; }

.check { display: flex; align-items: flex-start; gap: 12px; max-width: 60ch; margin-top: 6px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.consent { max-width: 64ch; font-size: 13px; }

.app-nav { border-top: 1px solid var(--ink); background: var(--paper); }
.app-nav .wrap { display: flex; align-items: center; gap: 12px; padding-block: 12px max(12px, env(safe-area-inset-bottom)); }
.app-nav .btn:not(.ghost) { margin-left: auto; min-width: 160px; }
.hint { margin: 0 0 0 auto; color: var(--graphite); font-size: 13px; }
.hint + .btn { margin-left: 0 !important; }
.hint kbd { padding: 2px 6px; border: 1px solid var(--ash); font: 600 12px/1 var(--sans); }
@media (hover: none), (pointer: coarse) { .hint { display: none; } .hint + .btn { margin-left: auto !important; } }
@media (max-width: 480px) { .app-nav .btn:not(.ghost) { min-width: 0; flex: 1; } }
@media (prefers-reduced-motion: reduce) { .segs i { transition: none; } .screen.in { animation: none; } }

/* Plan */
.plan-wrap { min-height: 70vh; padding-top: clamp(24px, 4vw, 48px); }
.building { margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--ink); }
.b-head { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 17px; }
.building .dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); } }
.reads { display: grid; gap: 9px; margin: 14px 0 2px; padding: 0; list-style: none; font-size: 16px; line-height: 1.4; }
.reads:empty { display: none; }
.reads li { display: flex; gap: 10px; color: var(--graphite); animation: rise .3s ease-out; }
.reads li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; flex: none; border: 1px solid var(--ash); }
.reads li.done::before { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23f4efe2' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; }
.reads li.now::before { border-color: var(--ink); background: var(--yellow); }
.reads li.now span { background: linear-gradient(100deg, var(--ink) 40%, var(--ash) 50%, var(--ink) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shim 1.8s linear infinite; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .building .dot, .reads li, .reads li.now span { animation: none; } .reads li.now span { color: var(--ink); background: none; } }

.plan { font-size: 18px; line-height: 1.6; }
.plan > * { max-width: 66ch; }
.plan h1 { max-width: 20ch; margin-bottom: 28px; font-size: clamp(34px, 5vw, 56px); }
.plan h2 { margin: 48px 0 16px; padding-top: 16px; border-top: 4px solid var(--ink); font-size: clamp(26px, 3.4vw, 36px); }
.plan h3 { margin: 28px 0 10px; font: 700 21px/1.2 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.plan p { margin: 0 0 14px; }
.plan ul, .plan ol { margin: 0 0 16px; padding-left: 1.2em; }
.plan li { margin-bottom: 10px; padding-left: .2em; }
.plan li::marker { color: var(--graphite); }
.plan strong { font-weight: 700; }
.plan .verdict { display: inline-block; margin-bottom: 18px; padding: 14px 18px; background: var(--yellow); font: 800 clamp(20px, 2.6vw, 26px)/1.2 var(--display); font-stretch: 125%; letter-spacing: -.015em; }
.plan .tag { display: inline-block; padding: 1px 7px; margin-left: 2px; font: 700 12px/1.6 var(--sans); letter-spacing: .08em; vertical-align: 2px; border: 1px solid var(--ink); }
.plan .tag.leak { background: var(--ink); color: var(--paper); }
.plan .tag.risk { background: var(--yellow); }

.plan .tbl { max-width: 100%; margin: 4px 0 18px; overflow-x: auto; border: 1px solid var(--ink); }
.plan table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.plan th, .plan td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.plan th { background: var(--paper-2); font-weight: 600; }
.plan tr:last-child td { border-bottom: 0; }
.plan td:last-child, .plan th:last-child { text-align: right; }

.next-step { display: grid; justify-items: start; gap: 12px; margin-top: 28px; padding: 24px; background: var(--ink); color: var(--paper); }
.next-step .cap { color: var(--ash); }
.plan-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.plan-error { display: grid; justify-items: start; gap: 12px; margin-top: 20px; }

@media print {
  .top, .foot, .skip, #landing, #why, .app, .section:not(#plan), .plan-tools, .building, .next-step .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 0; }
  .next-step { background: none; color: var(--ink); border: 1px solid var(--ink); }
  .plan h2 { break-after: avoid; }
  .plan li, .plan p { break-inside: avoid; }
}
