/* ============================================================
   HERO — Anatomical Plate
   ============================================================ */

.hero-variant { display: none; }
body[data-hero="plate"] .hero-variant.v-plate { display: block; }

/* =================================================================
   ANATOMICAL PLATE
   Vintage medical reference. Centered foot with line callouts.
   ================================================================= */
.v-plate {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 120px);
}
.v-plate .plate-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 80px);
  min-height: 600px;
  box-shadow: 0 30px 80px -40px rgba(21,33,47,0.18);
  overflow: hidden;
}
.v-plate .plate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 24px;
}
.v-plate .plate-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 14ch;
  text-transform: none;
}
.v-plate .plate-header h1 em { font-style: italic; color: var(--ink-2); }
.v-plate .plate-header .meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }

.v-plate .plate-stage {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(310px, 0.8fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 48px);
  margin: 24px 0;
}
.v-plate .foot-map-figure {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 49.9%, color-mix(in srgb, var(--rule) 68%, transparent) 50%, transparent 50.1%),
    radial-gradient(circle at 49% 57%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 42%),
    var(--bg);
}
.v-plate .foot-map-figure::before,
.v-plate .foot-map-figure::after {
  position: absolute;
  z-index: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v-plate .foot-map-figure::before {
  content: "Lateral view";
  top: 22px;
  left: 24px;
}
.v-plate .foot-map-figure::after {
  content: "Interactive regions";
  right: 24px;
  bottom: 20px;
}
.v-plate .foot-map-instruction {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v-plate .plate-foot {
  position: absolute;
  inset: 68px 14% 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.v-plate .plate-foot svg {
  width: min(100%, 660px);
  height: auto;
  overflow: visible;
}
.v-plate .foot-outline {
  fill: #f4f2eb;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.v-plate .foot-region {
  fill: color-mix(in srgb, var(--accent-soft) 34%, transparent);
  stroke: color-mix(in srgb, var(--ink-3) 62%, transparent);
  stroke-width: 1.5;
  opacity: 0.58;
  transition: fill 0.2s ease, opacity 0.2s ease, stroke 0.2s ease;
}
.v-plate .foot-region.is-active {
  fill: color-mix(in srgb, var(--accent) 32%, var(--accent-soft));
  stroke: var(--accent);
  opacity: 1;
}
.v-plate .foot-line,
.v-plate .foot-detail {
  fill: none;
  stroke-linecap: round;
}
.v-plate .foot-line {
  stroke: color-mix(in srgb, var(--ink-2) 48%, transparent);
  stroke-width: 1.6;
}
.v-plate .foot-detail {
  stroke: color-mix(in srgb, var(--ink-2) 32%, transparent);
  stroke-width: 1.4;
}
.v-plate .foot-hotspot {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 92px;
  min-height: 32px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 4px 8px 4px 5px;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.v-plate .foot-hotspot span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 9px;
}
.v-plate .foot-hotspot b {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.v-plate .foot-hotspot:hover,
.v-plate .foot-hotspot:focus-visible,
.v-plate .foot-hotspot.is-active {
  border-color: var(--accent);
  background: var(--surface);
  transform: translate(-50%, -50%) scale(1.04);
}
.v-plate .foot-hotspot.is-active span {
  color: #fff;
  background: var(--accent);
}
.v-plate .h-ankle { left: 31%; top: 33%; }
.v-plate .h-heel { left: 25%; top: 62%; }
.v-plate .h-arch { left: 43%; top: 69%; }
.v-plate .h-midfoot { left: 54%; top: 51%; }
.v-plate .h-ball { left: 68%; top: 67%; }
.v-plate .h-toes { left: 80%; top: 64%; }

.v-plate .foot-map-panel {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.v-plate .panel-kicker,
.v-plate .general-care p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v-plate .region-panel {
  padding-top: 18px;
}
.v-plate .region-panel h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}
.v-plate .region-panel > p {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.v-plate .region-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-plate .region-panel li {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.v-plate .region-panel strong {
  font-size: 15px;
  line-height: 1.3;
}
.v-plate .region-panel li span {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}
.v-plate .general-care {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.v-plate .general-care p {
  flex: 1 0 100%;
}
.v-plate .general-care span {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-2);
  background: var(--bg);
  font-size: 12px;
  line-height: 1;
}

/* Callouts: thin line + label */
.v-plate .callout {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.3;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  z-index: 2;
  transition: color 0.2s ease;
}
.v-plate .callout .lbl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v-plate .callout .lbl .name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  font-style: italic;
}
.v-plate .callout::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--ink-2);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.v-plate .callout .pin {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.v-plate .callout:hover,
.v-plate .callout:focus-visible,
.v-plate .callout.is-active {
  color: var(--accent-2);
}
.v-plate .callout:hover::before,
.v-plate .callout:focus-visible::before,
.v-plate .callout.is-active::before {
  background: var(--accent);
}
.v-plate .callout:hover .pin,
.v-plate .callout:focus-visible .pin,
.v-plate .callout.is-active .pin {
  transform: scale(1.45);
}
.v-plate .callout:focus-visible,
.v-plate .foot-hotspot:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 4px;
}
/* Right-side callouts: line extends left toward foot */
.v-plate .callout.c-mid,
.v-plate .callout.c-ball,
.v-plate .callout.c-toe {
  flex-direction: row-reverse;
  text-align: right;
}
.v-plate .callout.c-mid .lbl,
.v-plate .callout.c-ball .lbl,
.v-plate .callout.c-toe .lbl { text-align: right; }

/* Specific positions */
.v-plate .callout.c-heel    { left: 6%;  top: 50%; }
.v-plate .callout.c-heel::before { width: clamp(40px, 6vw, 100px); }
.v-plate .callout.c-ankle   { left: 6%;  top: 22%; }
.v-plate .callout.c-ankle::before { width: clamp(40px, 6vw, 100px); }
.v-plate .callout.c-arch    { left: 6%;  top: 78%; }
.v-plate .callout.c-arch::before { width: clamp(40px, 6vw, 100px); }
.v-plate .callout.c-mid     { right: 6%; top: 22%; }
.v-plate .callout.c-mid::before { width: clamp(40px, 6vw, 100px); }
.v-plate .callout.c-ball    { right: 6%; top: 50%; }
.v-plate .callout.c-ball::before { width: clamp(40px, 6vw, 100px); }
.v-plate .callout.c-toe     { right: 6%; top: 78%; }
.v-plate .callout.c-toe::before { width: clamp(40px, 6vw, 100px); }

.v-plate .plate-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.v-plate .plate-footer .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 38ch;
  line-height: 1.4;
}
.v-plate .plate-actions { display: flex; gap: 12px; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
  .v-plate .plate-stage { grid-template-columns: 1fr; }
  .v-plate .foot-map-figure,
  .v-plate .foot-map-panel { min-height: auto; }
  .v-plate .foot-map-figure { min-height: 620px; }
  .v-plate .callout.c-mid,
  .v-plate .callout.c-ball,
  .v-plate .callout.c-toe { right: 2%; }
  .v-plate .callout.c-heel,
  .v-plate .callout.c-ankle,
  .v-plate .callout.c-arch { left: 2%; }
}
@media (max-width: 720px) {
  .v-plate .plate-frame { padding: 32px 20px; min-height: auto; }
  .v-plate .foot-map-figure {
    display: grid;
    gap: 8px;
    min-height: auto;
    padding: 64px 14px 18px;
    background: var(--bg);
  }
  .v-plate .foot-map-figure::after { display: none; }
  .v-plate .plate-foot {
    position: relative;
    inset: auto;
    order: 1;
    min-height: 286px;
  }
  .v-plate .plate-foot svg { width: min(100%, 310px); }
  .v-plate .foot-hotspot {
    max-width: 92px;
    padding-right: 6px;
  }
  .v-plate .foot-hotspot b { font-size: 10px; }
  .v-plate .h-ankle { left: 29%; top: 171px; }
  .v-plate .h-heel { left: 23%; top: 273px; }
  .v-plate .h-arch { left: 43%; top: 296px; }
  .v-plate .h-midfoot { left: 54%; top: 230px; }
  .v-plate .h-ball { left: 68%; top: 290px; }
  .v-plate .h-toes { left: 87%; top: 278px; }
  .v-plate .callout {
    display: none;
  }
  .v-plate .foot-map-panel { padding: 24px 18px; }
  .v-plate .region-panel h2 { font-size: 34px; }
  .v-plate .plate-actions { width: 100%; flex-wrap: wrap; }
}
