:root {
  --bg: #f2ece2;
  --panel: #fffcf7;
  --panel-2: #faf3ea;
  --ink: #2f2a25;
  --ink-soft: #5b524a;
  --muted: #8b7f72;
  --line: #e4d9c9;
  --clay: #b5654a;
  --clay-deep: #8f4a34;
  --sage: #6d8a72;
  --forest: #2f5d43;
  --gold: #c9a227;
  --sand: #d8c4ae;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 40px -28px rgba(74, 54, 38, .55);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, #fbf6ee 0%, rgba(251,246,238,0) 60%),
    radial-gradient(760px 460px at 100% 0%, #f0e6d8 0%, rgba(240,230,216,0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 0 22px 60px;
}

/* ---------- topo ---------- */
.topbar {
  position: relative;
  z-index: 40;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 4px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--forest);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.brand-mark svg { width: 30px; height: 30px; }

.brand-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-sub {
  margin: 2px 0 0;
  max-width: 34ch;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 252, 247, .75);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tab {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: var(--ink);
  color: #fdf8f1;
  box-shadow: 0 8px 18px -12px rgba(47, 42, 37, .8);
}

/* ---------- estrutura ---------- */
main { max-width: 1240px; margin: 0 auto; }

.view { display: none; padding-top: 34px; }
.view.is-active { display: block; animation: rise .45s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -.01em;
}

.lede {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--clay-deep);
  background: #f6e6df;
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: .03em;
}
.badge.soft { background: var(--panel-2); color: var(--muted); font-weight: 500; }

/* ---------- mapa corporal ---------- */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf3;
}
.seg {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: .2s ease;
}
.seg:hover { color: var(--ink); }
.seg.is-active {
  background: var(--clay);
  color: #fff8f2;
  box-shadow: 0 8px 16px -12px var(--clay-deep);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.stage { overflow: hidden; }

.stage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.stage-label {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure-wrap {
  position: relative;
  padding: 10px 16px 4px;
  background:
    radial-gradient(70% 55% at 50% 42%, #fffdf9 0%, rgba(255,253,249,0) 72%),
    linear-gradient(180deg, #fbf6ee 0%, #f6eee2 100%);
}

.stage-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.body-stage {
  position: relative;
  perspective: 1600px;
  cursor: grab;
  touch-action: pan-y;
  padding-bottom: 8px;
}
.body-stage:active { cursor: grabbing; }

.body-float {
  animation: bodyFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

.body-3d {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .95s cubic-bezier(.22, .75, .25, 1);
  will-change: transform;
}

.body-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.body-face svg {
  display: block;
  width: 100%;
  max-height: 62vh;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.face-front { transform: rotateY(0deg); }
.face-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}
.face-back .point circle.halo { fill: url(#pointGlowBack); }

.body-shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 46%;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(74, 54, 38, .26), rgba(74, 54, 38, 0) 72%);
  filter: blur(3px);
  animation: shadowSoft 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bodyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes shadowSoft {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .9; }
  50% { transform: translateX(-50%) scale(.9); opacity: .6; }
}

.body-img-male { display: block; }
.body-img-female { display: none; }
body[data-gender="female"] .body-img-male { display: none; }
body[data-gender="female"] .body-img-female { display: block; }
.body-img { -webkit-user-drag: none; user-select: none; }

.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 252, 247, .88);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: opacity .3s ease;
  pointer-events: none;
}
.figure-wrap.is-revealed .stage-hint { opacity: 0; }

.stage-foot {
  display: flex;
  gap: 18px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.legend { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--clay); box-shadow: 0 0 0 3px rgba(181, 101, 74, .18); }
.dot-mark { background: var(--sage, #4f6b52); box-shadow: 0 0 0 3px rgba(79, 107, 82, .16); }
.dot-off { background: transparent; border: 1.5px solid var(--sand); }

/* pontos */
.point {
  cursor: pointer;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.4);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: none;
}
.figure-wrap.is-revealed .point {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.point circle.halo {
  fill: url(#pointGlow);
  opacity: 0;
  transition: opacity .3s ease;
}
.point circle.core {
  fill: var(--clay);
  stroke: #fffdf8;
  stroke-width: 2;
}
.point circle.ring {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.4;
  opacity: .45;
  transform-box: fill-box;
  transform-origin: center;
}
.point.is-active circle.ring {
  animation: pointPulse 1.9s ease-out infinite;
}

@keyframes pointPulse {
  0% { transform: scale(1); opacity: .75; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

.point:hover circle.halo,
.point.is-active circle.halo { opacity: 1; }
.point:hover circle.core { fill: var(--clay-deep); }
.point.is-active circle.core { fill: var(--ink); }
.point.is-active circle.ring { opacity: .9; stroke: var(--ink); }

.point.is-marked circle.core { fill: var(--sage, #4f6b52); }
.point.is-marked circle.ring { stroke: var(--sage, #4f6b52); opacity: .85; }
.point.is-marked:hover circle.core { fill: #3f5743; }
.point.is-active.is-marked circle.core { fill: var(--ink); }
.point.is-active.is-marked circle.ring { stroke: var(--ink); opacity: .9; }

/* lista de pontos */
.side { display: grid; gap: 18px; }

.point-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow: auto;
}

.point-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 9px 12px;
  cursor: pointer;
  transition: .18s ease;
}
.point-item:hover { background: var(--panel-2); border-color: var(--line); }
.point-item.is-active { background: #f7e9e2; border-color: #eccfc1; }

.point-num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: var(--clay-deep);
  background: #f6e6df;
  border: 1px solid #eed7cb;
}
.point-item.is-active .point-num { background: var(--clay); color: #fff; border-color: var(--clay); }
.point-item.is-marked .point-num { background: var(--sage, #4f6b52); color: #fff; border-color: var(--sage, #4f6b52); }
.point-item.is-marked .point-state { color: var(--sage, #4f6b52); }

.point-name { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.point-region { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 400; }

.point-state { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.point-item.is-locked .point-name { filter: blur(4px); color: var(--sand); user-select: none; }
.point-item.is-locked .point-region,
.point-item.is-locked .point-state { visibility: hidden; }

/* detalhe */
.detail-card { padding: 22px; min-height: 172px; }

.detail-empty {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.detail-empty-mark { color: var(--clay); font-size: 16px; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.detail-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
}
.chip {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  background: #eef2ec;
  border: 1px solid #dce5d9;
  border-radius: 999px;
  padding: 4px 10px;
}
.detail-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.detail-close:hover { color: var(--ink); border-color: var(--sand); }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.detail-actions .btn { font-size: 12.5px; padding: 9px 16px; }
.detail-mark-hint { font-size: 11.5px; color: var(--muted); flex: 1 1 150px; }

/* marcação do cliente */
.mark-card { padding: 20px 22px 22px; display: grid; gap: 12px; }
.mark-empty { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.mark-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}
.mark-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #dde5da;
  background: #f2f5f0;
}
.mark-item-num {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--sage, #4f6b52);
}
.mark-item-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.mark-item-region { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.mark-item-del {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.mark-item-del:hover { color: var(--clay); }
.mark-form { display: grid; gap: 10px; }
.mark-field { display: grid; gap: 6px; }
.mark-field span {
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark-field input,
.mark-field textarea {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}
.mark-field textarea { resize: vertical; min-height: 58px; }
.mark-field input:focus,
.mark-field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 101, 74, .12);
}
.mark-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mark-actions .btn { font-size: 12.5px; padding: 9px 16px; }
.mark-actions .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.mark-hint { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

.detail-rows { margin: 16px 0 0; display: grid; gap: 12px; }
.detail-row { display: grid; grid-template-columns: 104px 1fr; gap: 12px; }
.detail-row dt {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.detail-row dd { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- botões ---------- */
.btn {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: .2s ease;
}
.btn.primary {
  background: var(--ink);
  color: #fdf8f1;
  box-shadow: 0 12px 24px -18px rgba(47, 42, 37, .9);
}
.btn.primary:hover { background: #1f1b17; transform: translateY(-1px); }
.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn.ghost:hover { border-color: var(--sand); color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* ---------- anamnese ---------- */
.facial-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.form-card { padding-bottom: 20px; }
.form-card > .field { margin: 0 22px 16px; }
.form-card > .field-row { margin: 0 22px; }
.form-card > .form-actions { margin: 20px 22px 0; }

.form-card .card-head { margin-bottom: 18px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field label output {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--clay);
  letter-spacing: 0;
  text-transform: none;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="datetime-local"],
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 62px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 101, 74, .12);
}

.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--clay));
  margin: 8px 0 2px;
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fffdf9;
  border: 2px solid var(--clay);
  box-shadow: 0 2px 6px rgba(74, 54, 38, .22);
  cursor: pointer;
}
.field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fffdf9;
  border: 2px solid var(--clay);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.feedback-block {
  margin: 6px 22px 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.feedback-head h3 {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}
.feedback-head p {
  margin: 5px 0 16px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.feedback-block .field { margin-left: 0; margin-right: 0; }

.stars { display: flex; gap: 4px; margin-top: 2px; }
.star {
  font: inherit;
  font-size: 27px;
  line-height: 1;
  padding: 2px 5px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: #ded1c0;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.star:hover { color: var(--gold); transform: translateY(-2px); }
.star.is-on { color: var(--gold); }

.segmented.small { padding: 3px; }
.seg.small { padding: 7px 15px; font-size: 12px; }

.stars-readonly {
  margin: 0;
  font-size: 16px;
  letter-spacing: .16em;
  color: var(--gold);
  line-height: 1.2;
}
.feedback-summary {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.feedback-referral { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.feedback-referral strong { color: var(--ink); }
.feedback-comment {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.plan-referral { margin-top: 12px; }

.share-lede {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.share-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-phrase {
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ink-soft);
  cursor: pointer;
  transition: .18s ease;
}
.share-phrase:hover { border-color: var(--sand); color: var(--ink); }
.share-phrase.is-active { border-color: var(--clay); background: #f7e9e2; color: var(--ink); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.share-status { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--sage); }

.form-hint {
  margin: -2px 22px 16px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 22px 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-field input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--clay);
  cursor: pointer;
}

/* resultado */
.result { display: grid; gap: 18px; }

.result-placeholder { padding: 30px 26px; }
.result-placeholder h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.result-placeholder p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.placeholder-mark { color: var(--clay); }
.placeholder-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}
.placeholder-list li { padding-left: 18px; position: relative; }
.placeholder-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.plan { padding: 0; overflow: hidden; animation: rise .4s ease both; }

.plan-date {
  margin: 4px 0 0;
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--muted);
}

.plan-next {
  margin: 2px 0 0;
  padding: 11px 14px;
  border: 1px dashed #d9c4b1;
  border-radius: 12px;
  background: rgba(255, 253, 249, .7);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.plan-next strong {
  color: var(--ink);
  font-weight: 600;
  text-transform: capitalize;
}

.plan-top {
  padding: 20px 24px 22px;
  background: linear-gradient(135deg, #fff8f0, #f6ebdd);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.plan-sign {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 179, 157, .45);
}
.plan-sign-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
}
.plan-sign-tag {
  margin: 2px 0 0;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-sign-service {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--clay-deep);
}

.plan-headrow {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.plan-who h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}
.plan-who p { margin: 6px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.score { display: flex; align-items: center; gap: 14px; }
.score-ring {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  background: conic-gradient(var(--clay) calc(var(--v) * 1%), #e8dccd 0);
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: #fffdf9;
  border-radius: 50%;
}
.score-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.score-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 92px; line-height: 1.5; }

.plan-body { padding: 22px 24px 26px; display: grid; gap: 24px; }

.plan-section h3 {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.protocol-chips { display: grid; gap: 10px; }
.protocol-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel-2);
}
.protocol-chip strong { display: block; font-size: 14px; font-weight: 600; }
.protocol-chip span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.protocol-chip em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
  margin-top: 7px;
}

.phases { display: grid; gap: 12px; }
.phase {
  border-left: 2px solid #ecd9cb;
  padding: 2px 0 2px 16px;
}
.phase-label {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.phase h4 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.phase ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; }
.phase li { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

.recos { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.recos li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.recos li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-size: 10px;
  top: 3px;
}

.plan-foot {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.plan-foot p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; max-width: 46ch; }

/* ---------- protocolos ---------- */
.protocol-switch {
  margin-bottom: 22px;
  flex-wrap: wrap;
  background: #fffaf3;
}

.protocol-panel { display: none; }
.protocol-panel.is-active { display: block; animation: rise .35s ease both; }

.sheet { overflow: hidden; }

.sheet-head {
  padding: 26px 26px 22px;
  background: linear-gradient(135deg, #fff8f0, #f6ebdd);
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
}
.sheet-lede {
  margin: 0;
  max-width: 74ch;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.sheet-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sheet-meta span {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  background: #eef2ec;
  border: 1px solid #dce5d9;
  border-radius: 999px;
  padding: 5px 11px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px 26px;
}
.sheet-block h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}
.sheet-block ul,
.sheet-block ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.sheet-block li {
  font-size: 13px;
  line-height: 1.58;
  color: var(--ink-soft);
}
.sheet-block.warn {
  background: #fbf3ec;
  border: 1px solid #ecd9cb;
  border-radius: 16px;
  padding: 16px 18px;
}
.sheet-block.warn h3 { color: var(--clay-deep); }
.sheet-note {
  margin: 0;
  padding: 0 26px 24px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 760px) {
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}

.protocol { padding: 22px 22px 20px; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.protocol:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(74, 54, 38, .6); }
.protocol-index {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--clay);
}
.protocol h2 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
}
.protocol-meta {
  margin: 0 0 12px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.protocol p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.benefits li {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.note-card { margin-top: 18px; padding: 26px; }
.note-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
.note-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); max-width: 78ch; }
.disclaimer { font-size: 11.5px !important; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px !important; }

/* ---------- serviços / portfólio ---------- */
.about-card { padding: 30px 32px; }
.about-top { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; }
.about-head { min-width: 0; }
.about-head .about-role { margin-bottom: 0; }
.about-photo {
  position: relative;
  flex: 0 0 auto;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid #c9a227;
  background: radial-gradient(circle at 35% 25%, #f6efe4, #e6d8c2);
  box-shadow: 0 12px 26px rgba(90, 68, 36, .16);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.about-photo-initials {
  display: none;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #8a6a33;
}
.about-photo.is-empty img { display: none; }
.about-photo.is-empty .about-photo-initials { display: block; }
@media (max-width: 560px) {
  .about-top { gap: 16px; }
  .about-photo { width: 96px; height: 96px; border-width: 2px; }
  .about-photo-initials { font-size: 1.9rem; }
  .about-card { padding: 24px 20px; }
  .about-card h2 { font-size: 26px; }
}
.about-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.1;
}
.about-role {
  margin: 5px 0 16px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-text {
  margin: 0 0 12px;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.about-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.about-tags li {
  font-size: 11.5px;
  color: var(--forest);
  background: #eef2ea;
  border: 1px solid #dbe4d6;
  border-radius: 999px;
  padding: 6px 12px;
}

.about-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.about-follow > span { font-size: 13px; line-height: 1.6; color: var(--ink-soft); flex: 1 1 240px; }
.btn.insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: #fffdf8;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 12.5px;
  white-space: nowrap;
}
.btn.insta:hover { background: #5d7a63; color: #fff; transform: translateY(-1px); }
.btn.insta svg { width: 15px; height: 15px; flex: none; }

.service-head { margin: 42px 0 18px; }
.service-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3.2vw, 33px);
  font-weight: 600;
}
.service-head p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

.service-group + .service-group { margin-top: 30px; }
.service-group-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
}
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.service {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  padding: 22px;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(74, 54, 38, .6); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}
.service-price {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--ink);
  color: #fdf8f1;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.service p { flex: 1 1 auto; margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.service-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: -2px;
}
.service-time {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--ink-soft);
}
.service-time svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; opacity: .65; }
.service-note {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
}
.service-book { align-self: flex-start; padding: 10px 16px; font-size: 13px; }
.service-book-off { font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.day-card { margin-top: 30px; padding: 26px; }
.day-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
}
.day-lede { margin: 8px 0 20px; font-size: 13.5px; color: var(--ink-soft); }
.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) {
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .day-grid { grid-template-columns: minmax(0, 1fr); }
}
.day-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--panel-2);
  box-shadow: 0 18px 34px -34px rgba(74, 54, 38, .7);
}
.day-icon { font-size: 20px; line-height: 1; display: block; margin-bottom: 10px; }
.day-item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.day-item p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }

.info-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  margin-top: 26px;
  align-items: start;
}
.policy-card, .pay-card { padding: 26px; }
.policy-card h2, .pay-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.8vw, 28px);
  font-weight: 600;
}
.policy-list { margin: 18px 0 0; display: grid; gap: 14px; }
.policy-list dt {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.policy-list dd { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }

.pay-lede { margin: 8px 0 16px; font-size: 13px; color: var(--ink-soft); }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fdf8f1;
  font-size: 13.5px;
}
.pay-icon { font-size: 16px; line-height: 1; opacity: .9; }
.pay-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 780px) {
  .info-duo { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- perfil / marca ---------- */
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
img[hidden] { display: none !important; }
.brand-mark.has-logo { padding: 0; overflow: hidden; background: #fff; }
.brand-mark.has-logo svg { display: none; }

.btn.whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2f5d43;
  color: #f5fbf7;
  border-color: transparent;
  text-decoration: none;
}
.btn.whats:hover { background: #264c37; transform: translateY(-1px); }
.btn.whats svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn.whats.is-block { width: 100%; }
.btn.whats.is-disabled { background: #e6e0d6; color: #a49786; pointer-events: none; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  align-items: start;
}

.logo-drop {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel-2);
}
.logo-preview {
  width: 88px; height: 88px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-preview.photo-preview { border-radius: 50%; border: 2px solid #c9a227; }
.logo-preview.photo-preview img { object-position: 50% 50%; }
.logo-preview span { font-size: 10.5px; letter-spacing: .04em; color: var(--muted); text-align: center; padding: 0 6px; }
.logo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 160px; }
.logo-actions .btn { padding: 9px 14px; }
.file-btn { cursor: pointer; }
/* campo de arquivo fora da tela, mas ainda "clicável" pelo navegador.
   display:none / hidden impede a galeria de abrir em vários celulares. */
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.hint { margin: 0; width: 100%; font-size: 11px; line-height: 1.5; color: var(--muted); }
.save-note { align-self: center; font-size: 12px; color: var(--sage); }

.preview-body { padding: 20px 22px 24px; display: grid; gap: 12px; }
.preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}
.brand-mark.small { width: 40px; height: 40px; border-radius: 13px; box-shadow: none; }
.brand-mark.small svg { width: 25px; height: 25px; }
.preview-name { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.preview-sub { margin: 3px 0 0; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.preview-label { margin: 6px 0 0; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- histórico ---------- */
.history-card { margin-top: 22px; }
.history-empty {
  margin: 0;
  padding: 20px 22px;
  max-width: 76ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px 12px;
  display: grid;
  gap: 4px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background .18s ease, border-color .18s ease;
}
.history-item:hover { background: var(--panel-2); border-color: var(--line); }
.history-open {
  flex: 1;
  display: grid;
  gap: 3px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 14px;
}
.history-name { font-size: 13.5px; font-weight: 500; }
.history-meta { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.history-del {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: .18s ease;
}
.history-del:hover { color: var(--clay-deep); background: #f6e6df; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- rodapé ---------- */
.site-foot {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.site-foot p { margin: 0; }
.foot-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.foot-whats {
  font-size: 11.5px;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.foot-whats:hover { color: #4c6b52; }

.agenda-insta { font-size: 12.5px !important; color: var(--muted); }
.agenda-insta a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.agenda-insta a:hover { color: #4c6b52; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .map-layout,
  .facial-layout,
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .body-face svg { max-height: 54vh; }
  .point-list { max-height: none; }
}

@media (max-width: 620px) {
  body { padding: 0 14px 44px; }
  .topbar { padding-top: 18px; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1 0 auto; padding: 10px 12px; font-size: 12.5px; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 2px; }
  .detail-row dd { margin-bottom: 6px; }
  .plan-top { padding: 18px; }
  .plan-body { padding: 18px; }
}

/* ---------- anamnese de saúde ---------- */
.form-divider {
  margin: 8px 22px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.form-divider h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.form-divider p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 22px 16px;
}
.check-grid .check-field { margin: 0; font-size: 12.5px; }
.plan-alert {
  border: 1px solid #e3c3b6;
  background: #fdf4ef;
  border-radius: 14px;
  padding: 16px 18px;
}
.plan-alert h3 { color: #9a4a2c; }
.plan-alert .recos li { color: #7c4327; }

@media (max-width: 560px) {
  .check-grid { grid-template-columns: 1fr; }
}

/* ---------- cabeçalho da ficha de anamnese ---------- */
.card-head-stack { align-items: flex-start; }
.card-head-stack h2 { margin: 0; }
.card-owner {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- som de cura ---------- */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.sound-dock {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, .45);
  background: linear-gradient(180deg, #fffdf8, #f6ecdd);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 34px -22px rgba(74, 54, 38, .85);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sound-toggle:hover { transform: translateY(-1px); box-shadow: 0 20px 38px -22px rgba(74, 54, 38, .9); }
.sound-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.sound-icon { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.sound-icon i {
  display: block;
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: var(--gold);
  animation: soundBar 1.9s ease-in-out infinite;
}
.sound-icon i:nth-child(2) { animation-delay: .3s; }
.sound-icon i:nth-child(3) { animation-delay: .6s; }
.sound-icon i:nth-child(4) { animation-delay: .9s; }
.sound-dock:not(.is-playing) .sound-icon i { animation-play-state: paused; opacity: .6; height: 4px; }

@keyframes soundBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.sound-dock.is-hint .sound-toggle {
  border-color: var(--clay);
  animation: soundPulse 2.6s ease-out infinite;
}

@keyframes soundPulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 101, 74, .35); }
  70% { box-shadow: 0 0 0 15px rgba(181, 101, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 101, 74, 0); }
}

.sound-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(330px, calc(100vw - 36px));
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 28px 60px -34px rgba(74, 54, 38, .8);
}

.sound-title { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.sound-sub { margin: 4px 0 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }

.sound-tracks { display: grid; gap: 6px; }

.sound-track {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "hz name" "hz note";
  gap: 0 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--panel-2);
  text-align: left;
  font-family: var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.sound-track:hover { border-color: rgba(201, 162, 39, .35); }
.sound-track.is-active { border-color: rgba(201, 162, 39, .6); background: #fffdf4; }
.sound-track .st-hz { grid-area: hz; align-self: center; font-size: 12px; font-weight: 700; color: var(--clay-deep); font-variant-numeric: tabular-nums; }
.sound-track .st-name { grid-area: name; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sound-track .st-note { grid-area: note; font-size: 11.5px; color: var(--muted); }

.sound-controls { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; }

.sound-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px -16px rgba(47, 93, 74, .9);
}
.sound-play:active { transform: scale(.98); }
.sound-dock.is-playing .sound-play { background: #24483a; border-color: #24483a; color: #fff; }
.sp-dot { width: 8px; height: 8px; border-radius: 50%; background: #d6ead9; }
.sound-dock.is-playing .sp-dot { background: #fff; }

.sound-vol { flex: 1; display: flex; align-items: center; gap: 8px; }
.vol-label { font-size: 11px; color: var(--muted); }
.sound-vol input { width: 100%; accent-color: var(--gold); }

.sound-status {
  margin: 10px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--forest);
}

.sound-note a { color: var(--clay-deep); text-decoration: underline; }

.sound-warn {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(181, 101, 74, .35);
  border-radius: 12px;
  background: #fdf3ec;
  color: var(--clay-deep);
  font-size: 11.5px;
  line-height: 1.5;
}

.sound-note { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* aviso de navegador embutido (Instagram, Facebook, TikTok) */
.app-tip {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #f7eddf);
  box-shadow: 0 20px 44px -26px rgba(74, 54, 38, .9);
  font-family: var(--sans);
}
.app-tip[hidden] { display: none; }
.app-tip-text { flex: 1 1 210px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.app-tip-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.app-tip-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.app-tip-go[hidden] { display: none; }
.app-tip-go:active { transform: scale(.98); }
.app-tip-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

@media print { .app-tip { display: none !important; } }

@media (max-width: 620px) {
  .topbar-right { display: contents; }
  .brand { order: 1; }
  .sound-dock { order: 2; margin-left: auto; }
  .tabs { order: 3; }
  .sound-toggle { padding: 10px 14px; font-size: 12.5px; }
}

@media (max-height: 660px) {
  .sound-panel { padding: 14px; }
  .sound-sub, .sound-note { display: none; }
  .sound-title { margin-bottom: 10px; }
  .sound-track { padding: 7px 10px; }
}

@media print {
  @page { margin: 12mm; }
  body { background: #fff; padding: 0; }
  .topbar, .site-foot, .form-card, #resultPlaceholder, .history-card, .plan-foot .btn, .share-section, .plan-referral, .sound-dock { display: none !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .view, .view.is-active { display: block !important; padding: 0; }
  #view-corporal, #view-protocolos, #view-servicos, #view-perfil { display: none !important; }
  .facial-layout { display: block; }
  .card { box-shadow: none; border-color: #d9d0c4; }
  .plan { break-inside: auto; }
  .plan-top, .protocol-chip, .phase, .plan-section { break-inside: avoid; }
}

/* botão de teste do som (fica no painel, acima das faixas) */
.sound-test {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 13px 14px;
  border: 1px solid #2f5d4a;
  border-radius: 999px;
  background: #2f5d4a;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(47, 93, 74, .9);
}
.sound-test:active { transform: scale(.98); }
.sound-test.is-playing { background: #24483a; border-color: #24483a; }
.sound-status { font-size: 13px; }

/* caminho alternativo: entrega a faixa para o player de música do celular */
.sound-player-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 13px 14px;
  border-radius: 999px;
  background: #b5654a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.sound-player-link:active { transform: scale(.98); }

.sound-all-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 93, 74, .35);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.sound-all-link:active { transform: scale(.98); background: #f2f7f3; }

.copy-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 93, 74, .35);
  border-radius: 14px;
  background: #fff;
  color: #2f5d4a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:active { transform: scale(.98); }
.copy-msg { margin: 0 0 12px !important; font-weight: 700; color: #2f5d4a !important; }
