/* Premium area check and pricing cards (30 Nov 2026). Loaded after site.css. */
#pricing { --go: #30D158; --no: #FF453A; }

@supports (grid-template-rows: subgrid) {
  #pricing .prices { grid-template-rows: auto 1fr auto; }
  #pricing .price { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 28px; }
  #pricing .price > * { align-self: start; }
  #pricing .price > .price-mid { align-self: stretch; }
  #pricing .price > :last-child { align-self: end; }
}
#pricing .price-mid { display: flex; flex-direction: column; gap: 28px; }
#pricing .price-mid .ticks li:first-child { margin-top: 0; }

@media (hover: hover) {
  #pricing .price { transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease; }
  #pricing .price:hover { translate: 0 -4px; box-shadow: 0 26px 48px -26px rgba(0,0,0,.3); }
  #pricing .btn-ink:hover { background: #45464c; }
}

#pricing .area { background: var(--soft, #F1F1EF); border-radius: 14px; padding: 18px; flex: 1; display: flex; flex-direction: column; }
#pricing .area .zipmap { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#pricing .area-closed { flex: 1; display: flex; flex-direction: column; cursor: pointer; border-radius: 10px; }
#pricing .area-closed:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
#pricing .area-closed .zipmap { flex: 1; grid-auto-rows: minmax(30px, 1fr); }
#pricing .area-closed .zipmap span { height: auto; }
#pricing .area-closed .zipmap .on { transition: transform .2s ease; }
#pricing .area-closed:hover .zipmap .on { transform: translateY(-2px); }
#pricing .area-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--mute, #6B6F76); }
#pricing .area-closed .area-cap { flex-direction: column; align-items: flex-start; gap: 2px; }
#pricing .area-cap p { margin: 0; }
#pricing .area-link { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 6px 0 2px; cursor: pointer; white-space: nowrap; }
#pricing .area-link .t { text-decoration: underline; text-underline-offset: 3px; }
#pricing .area-open .area-link { padding: 0; }
#pricing .area-arr { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
#pricing .area-closed:hover .area-arr { transform: translateX(5px); }

#pricing .area-seg { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#pricing .area-seg-l { font-size: 13px; color: var(--mute, #6B6F76); white-space: nowrap; }
#pricing .area-seg-t { position: relative; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #eaeae8; border-radius: 10px; padding: 3px; }
#pricing .area-seg-t .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(11,11,12,.10), 0 0 0 .5px rgba(11,11,12,.05); transition: transform .45s cubic-bezier(.3,.75,.2,1); }
#pricing .area-seg[data-v="plumbing"] .thumb { transform: translateX(100%); }
#pricing .area-seg[data-v="both"] .thumb { transform: translateX(200%); }
#pricing .area-seg label { position: relative; display: grid; place-content: center; min-height: 38px; font-size: 13.5px; font-weight: 500; color: var(--mute, #6B6F76); cursor: pointer; transition: color .3s ease; }
#pricing .area-seg label:hover, #pricing .area-seg label.on { color: var(--ink); }
#pricing .area-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#pricing .area-seg label:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 8px; }

#pricing .area-chk, #pricing .area-mail { display: flex; gap: 6px; }
#pricing .area-mail { margin-top: 10px; }
#pricing .area input[type="text"], #pricing .area input[type="email"] { flex: 1 1 0; min-width: 0; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fff; color: var(--ink); min-height: 44px; }
#pricing .area input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
#pricing .area-go { flex: none; font: inherit; font-size: 15px; font-weight: 500; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 0 16px; min-height: 44px; cursor: pointer; transition: background .25s ease; }
@media (hover: hover) { #pricing .area-go:hover { background: #45464c; } }
#pricing .area-go[disabled] { opacity: .6; cursor: default; }
#pricing .area-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#pricing .area-out .zipmap { margin-top: 10px; }
#pricing .area-out .zipmap button { position: relative; display: block; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 2px; text-align: center; font: inherit; font-size: 12px; color: #a9abb0; line-height: 1.25; cursor: pointer; }
#pricing .area-out .zipmap button small { display: block; font-size: 10.5px; font-weight: 400; }
#pricing .area-out .zipmap button::after { content: "\00d7"; position: absolute; top: 1px; right: 5px; font-size: 13px; color: #a9abb0; }
#pricing .area-out .zipmap button:hover::after { color: var(--ink); }
#pricing .area-out .zipmap .on { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; }
#pricing .area-out .zipmap .taken { color: var(--no); font-weight: 600; border-color: color-mix(in srgb, var(--no) 45%, #fff); background: color-mix(in srgb, var(--no) 7%, #fff); box-shadow: 0 0 12px color-mix(in srgb, var(--no) 28%, transparent); }

#pricing .area-meter { margin-top: 12px; }
#pricing .area-bar { height: 4px; border-radius: 999px; background: #e7e7e5; }
#pricing .area-bar i { display: block; height: 100%; border-radius: 999px; background: var(--go); box-shadow: 0 0 10px color-mix(in srgb, var(--go) 75%, transparent); transition: width .3s ease; }
#pricing .area-bar.over i { background: var(--no); box-shadow: 0 0 10px color-mix(in srgb, var(--no) 75%, transparent); }
#pricing .area-meter p + .area-bar { margin-top: 10px; }
#pricing .area-meter p { margin: 6px 0 0; font-size: 12.5px; color: var(--mute, #6B6F76); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#pricing .area-meter b { color: var(--ink); font-weight: 600; }
#pricing .area-msg { margin: 12px 0 0; font-size: 14.5px; color: var(--text, #2B2D31); }
#pricing .area-msg b { font-weight: 600; color: var(--ink); }
#pricing .area-ok, #pricing .area-no { position: relative; display: inline-block; font-weight: 600; color: var(--ink); }
#pricing .area-ok::after, #pricing .area-no::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--go); box-shadow: 0 0 10px color-mix(in srgb, var(--go) 85%, transparent); }
#pricing .area-no::after { background: var(--no); box-shadow: 0 0 10px color-mix(in srgb, var(--no) 75%, transparent); }
#pricing .area-small { margin: 8px 0 0; font-size: 12.5px; color: var(--mute, #6B6F76); }

#pricing #areaCta { position: relative; overflow: hidden; display: grid; transition: border-color .5s ease; }
#pricing #areaCta.is-res { border-color: var(--ink); }
#pricing #areaCta .lab { grid-area: 1 / 1; align-self: center; justify-self: center; }
#pricing #areaCta::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 36%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(11,11,12,.14) 50%, transparent); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  #pricing .area-res { animation: areaIn .25s ease-out; }
  @keyframes areaIn { from { opacity: 0; transform: translateY(4px); } }
  #pricing .area-closed:not(:hover) .area-arr { animation: areaNudge 2.6s ease-in-out infinite; }
  @keyframes areaNudge { 0%, 72%, 100% { transform: none; } 86% { transform: translateX(5px); } }
  #pricing #areaCta.sw-f::after { animation: ctaBand 1.3s cubic-bezier(.65,0,.35,1); }
  #pricing #areaCta.sw-b::after { animation: ctaBand 1.3s cubic-bezier(.65,0,.35,1) reverse; }
  #pricing #areaCta.sw-f .lab.in { animation: ctaIn 1.3s cubic-bezier(.65,0,.35,1) both; }
  #pricing #areaCta.sw-f .lab.out { animation: ctaOut 1.3s cubic-bezier(.65,0,.35,1) both; }
  #pricing #areaCta.sw-b .lab.in { animation: ctaOut 1.3s cubic-bezier(.65,0,.35,1) reverse both; }
  #pricing #areaCta.sw-b .lab.out { animation: ctaIn 1.3s cubic-bezier(.65,0,.35,1) reverse both; }
  @keyframes ctaBand { 0% { opacity: 0; transform: translateX(-50%); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(228%); } }
  @keyframes ctaIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes ctaOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
}
@media (prefers-reduced-motion: reduce) { #pricing .area-seg-t .thumb { transition: none; } }
@media (max-width: 480px) { #pricing .area-seg { flex-direction: column; align-items: stretch; gap: 5px; } }
@media (max-width: 420px) { #pricing .area .zipmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 30 Nov 2026: "Your trade" switch above the plan cards (pricing.js), no trade preselected */
#pricing .plan-seg { display: flex; align-items: center; gap: 14px; max-width: 460px; margin: 32px 0 0; }
#pricing .plan-seg-l { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
#pricing .plan-seg-t { position: relative; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #eaeae8; border-radius: 10px; padding: 3px; transition: box-shadow .2s ease; }
#pricing .plan-seg-t .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(11,11,12,.10), 0 0 0 .5px rgba(11,11,12,.05); transition: transform .45s cubic-bezier(.3,.75,.2,1), opacity .25s ease; }
#pricing .plan-seg[data-v=""] .thumb, #pricing .area-seg[data-v=""] .thumb { opacity: 0; }
#pricing .plan-seg[data-v="plumbing"] .thumb { transform: translateX(100%); }
#pricing .plan-seg[data-v="both"] .thumb { transform: translateX(200%); }
#pricing .plan-seg label { position: relative; display: grid; place-content: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--mute, #6B6F76); cursor: pointer; transition: color .3s ease; }
#pricing .plan-seg label:hover, #pricing .plan-seg label.on { color: var(--ink); }
#pricing .plan-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#pricing .plan-seg label:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 8px; }
#pricing .area-seg-t { transition: box-shadow .2s ease; }
#pricing .plan-seg-t.need, #pricing .area-seg-t.need { box-shadow: 0 0 0 2px var(--no, #FF453A), 0 0 14px color-mix(in srgb, var(--no, #FF453A) 35%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  #pricing .plan-seg-t.shake, #pricing .area-seg-t.shake { animation: rcShake .5s cubic-bezier(.36,.07,.19,.97); }
  @keyframes rcShake { 0%, 100% { transform: none; } 15% { transform: translateX(-7px); } 30% { transform: translateX(7px); } 45% { transform: translateX(-5px); } 60% { transform: translateX(5px); } 75% { transform: translateX(-2px); } 90% { transform: translateX(2px); } }
  #pricing .flip { display: inline-block; animation: rcFlip .3s ease-out; }
  @keyframes rcFlip { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) { #pricing .plan-seg-t .thumb { transition: none; } }
@media (max-width: 480px) { #pricing .plan-seg { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; } }
