/* Página de marcação */
.hero { position: relative; background: var(--card); border-bottom: 1px solid var(--line); }
.hero-cover { height: 132px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 70%, white) 0%, var(--brand) 45%, var(--brand-700) 100%); background-size: cover; background-position: center; }
.hero-cover.img { background-blend-mode: normal; }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px 20px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.logo { width: 84px; height: 84px; border-radius: 22px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 28px; overflow: hidden; flex-shrink: 0; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.logo.md { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.hero .logo { margin-top: -42px; border: 4px solid #fff; box-shadow: var(--sh-2); width: 92px; height: 92px; }
.hero-text { flex: 1; min-width: 220px; padding-top: 12px; }
.hero h1 { font-size: clamp(24px, 4vw, 32px); }
.hero-tag { color: var(--muted); margin-top: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-meta a.chip { text-decoration: none; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-50); }
.closed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }

.book { max-width: 1120px; margin: 0 auto; padding: 24px 20px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 920px) { .book { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 130px; } }

.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step-pill { height: 36px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; border: 0; background: transparent; cursor: default; }
.step-pill .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e9edf3; color: var(--muted); font-size: 12px; }
.step-pill.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.step-pill.on .n { background: var(--brand); color: var(--brand-ink); }
.step-pill.done { color: var(--ink-2); cursor: pointer; }
.step-pill.done .n { background: var(--brand-100); color: var(--brand-700); }
.step-sep { color: var(--faint); align-self: center; }

.panel { padding: 22px; }
@media (max-width: 600px) { .panel { padding: 16px; border-radius: 18px; } }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title h2 { font-size: 20px; }

/* Catálogo */
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 42px !important; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; position: sticky; top: 0; background: #fff; z-index: 2; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.cat-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-block { margin-top: 18px; }
.cat-block h3 { font-size: 15px; font-family: var(--font); font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.svc { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; margin-bottom: 10px; }
.svc:hover { border-color: var(--brand-200); box-shadow: var(--sh-2); }
.svc.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-2); background: var(--brand-50); }
.svc .body { flex: 1; min-width: 0; }
.svc .name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc .desc { color: var(--muted); font-size: 13.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.svc .meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.svc .meta svg.i { width: 15px; height: 15px; color: var(--faint); }
.svc .price { font-weight: 700; color: var(--ink); }
.svc .pick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.svc.on .pick { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc .pick svg.i { width: 15px; height: 15px; }

/* Profissionais */
.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pro { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; transition: .15s; }
.pro:hover { border-color: var(--brand-200); }
.pro.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-50); }
.pro b { display: block; font-size: 15px; }
.pro span.t { font-size: 13px; color: var(--muted); }
.pro .any { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; }

/* Escolha de plataforma */
.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.plat input { position: absolute; opacity: 0; pointer-events: none; }
.plat label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 600; background: #fff; min-height: 52px; }
.plat label .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.plat input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-50); }
.plat input:checked + label .ic { background: var(--brand); color: var(--brand-ink); }
.plat input:focus-visible + label { outline: 2.5px solid var(--brand-200); outline-offset: 2px; }

/* Resumo */
.summary { position: sticky; top: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary h3 { font-size: 16px; }
.sum-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.sum-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; }
.sum-row .k { font-size: 12px; color: var(--muted); }
.sum-row .v { font-weight: 600; }
.sum-row.none .v { color: var(--faint); font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 14px; font-weight: 700; }
.sum-total .v { font-size: 18px; font-family: var(--display); }
@media (max-width: 920px) { .summary { display: none; } }

/* Barra fixa no telemóvel */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .18); }
.mbar .info { flex: 1; min-width: 0; font-size: 13px; }
.mbar .info b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 920px) { .mbar.show { display: flex; } }

/* Confirmação */
.done { text-align: center; padding: 36px 22px; }
.done .badge-ok { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ok-50); color: var(--ok); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.done .badge-ok.wait { background: var(--warn-50); color: var(--warn); }
.done .badge-ok svg.i { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h2 { font-size: 26px; margin-bottom: 6px; }
.ticket { text-align: left; border: 1px solid var(--line); border-radius: 18px; margin: 24px auto; max-width: 520px; overflow: hidden; }
.ticket-head { background: var(--brand-50); padding: 16px 18px; display: flex; gap: 12px; align-items: center; border-bottom: 1px dashed var(--brand-200); }
.ticket-head b { font-size: 16px; }
.ticket-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.join { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 12px; padding: 10px 12px; }
.join a.url { flex: 1; font-size: 13px; color: var(--ink-2); word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; padding: 24px 16px 40px; }
.foot a { color: var(--muted); }
.step-pill .n { flex-shrink: 0; }
.steps-m { display: none; margin-bottom: 12px; }
.steps-m .row { justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps-m .row b { color: var(--ink); }
.steps-m .bar { height: 6px; border-radius: 99px; background: #e5e9f0; margin-top: 8px; overflow: hidden; }
.steps-m .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
@media (max-width: 600px) {
  .steps { display: none; }
  .steps-m { display: block; }
  .hero-cover { height: 96px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 16px 16px; }
  .hero .logo { width: 72px; height: 72px; margin-top: -36px; border-radius: 18px; font-size: 22px; }
  .hero-text { padding-top: 6px; }
  .hero-meta { margin-top: 10px; }
}
