/* Obtino — client results module (map + client cards).
   Scoped to .obtino-proof. Reuses the site's tokens, fonts and link styling. */

.obtino-proof{
  --pm-line: var(--line, #e3e3e3);
  --pm-ink: var(--ink, #141414);
  --pm-muted: var(--muted, #626262);
  --pm-radius: var(--panel-radius, 24px);
  --pm-ease: var(--motion-ease, cubic-bezier(.16,1,.3,1));
  --pm-dur: var(--motion-feedback, 350ms);
  margin-top: 74px;
  display: grid;
  grid-template-columns: minmax(0,58fr) minmax(0,42fr);
  align-items: center;
  column-gap: clamp(40px, 5vw, 96px);
}

/* ---------- map ---------- */
.obtino-proof__map{ min-width: 0; }
.obtino-proof__frame{
  position: relative;
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
  aspect-ratio: 900 / 680;   /* matches the SVG viewBox so markers align exactly */
}
.obtino-proof__frame img{
  display: block;
  width: 100%;
  height: 100%;
  /* dissolve the frame edges so the map does not end in a hard rectangle */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.obtino-proof__markers{
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.obtino-proof__marker{
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
}
.obtino-proof__pin{
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  border-radius: 50%;
}
.obtino-proof__dot{
  position: relative;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pm-ink);
  box-shadow: 0 0 0 3px #fff;
  transition: width var(--pm-dur) var(--pm-ease), height var(--pm-dur) var(--pm-ease);
}
.obtino-proof__marker[data-count="2"] .obtino-proof__dot{ width: 24px; height: 24px; }
.obtino-proof__count{
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
/* ring: drawn on a pseudo-element so nothing in the layout moves */
.obtino-proof__dot::after{
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid var(--pm-ink);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.6);
  transition: opacity var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}
.obtino-proof__place{
  position: absolute;
  top: calc(50% + 20px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--pm-muted);
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--pm-dur) var(--pm-ease);
  pointer-events: none;
}
.obtino-proof__marker[data-count="2"] .obtino-proof__place{ top: calc(50% + 24px); }

.obtino-proof__marker.is-active .obtino-proof__dot::after{ opacity: 1; transform: none; }
.obtino-proof__marker.is-active .obtino-proof__place{ opacity: 1; }
.obtino-proof__pin:focus-visible{ outline: 2px solid var(--pm-ink); outline-offset: 3px; }

/* ---------- cards ---------- */
.obtino-proof__cards{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.obtino-proof__card{
  position: relative;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  padding: 26px 30px 24px;
  background: #fff;
  transition: border-color var(--pm-dur) var(--pm-ease), background-color var(--pm-dur) var(--pm-ease);
}
/* selection cue #1: a solid rule, not a colour change */
.obtino-proof__card::before{
  content: "";
  position: absolute;
  left: -1px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--pm-ink);
  opacity: 0;
  transform: scaleY(.4);
  transform-origin: center;
  transition: opacity var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}
.obtino-proof__card.is-active{ border-color: #c4c4c4; background: #fbfbfa; }
.obtino-proof__card.is-active::before{ opacity: 1; transform: none; }

.obtino-proof__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.obtino-proof__client{ font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.obtino-proof__where{ font-size: 13px; color: var(--pm-muted); white-space: nowrap; }

.obtino-proof__body{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}
/* Grid tracks, not content-sized flex items: the number's box must never depend on
   its own text measurement, which Chromium can cache stale across a webfont swap. */
.obtino-proof__metrics{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px 30px;
  flex: 1 1 auto;
  min-width: 0;
}
.obtino-proof__metric{ display: block; min-width: 0; }
.obtino-proof__metric strong{
  display: block;
  white-space: nowrap;
  font-size: clamp(42px, 3.15vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
/* Direct child only: the site wraps digits in <span class="number-font">, and a
   descendant selector here would resize the number itself. */
.obtino-proof__metric > span{ display: block; font-size: 15px; line-height: 1.4; margin-top: 10px; }
.obtino-proof__metric strong span{ font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.obtino-proof__metric--secondary{ padding-left: 30px; border-left: 1px solid var(--pm-line); }
.obtino-proof__metric--secondary strong{ font-size: clamp(24px, 1.6vw, 30px); }
.obtino-proof__metric--secondary > span{ font-size: 14px; color: var(--pm-muted); margin-top: 7px; }

.obtino-proof__cta{ margin: 0 0 4px; flex: none; }
.obtino-proof__cta .text-link{ font-size: 14px; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px){
  .obtino-proof{ column-gap: 36px; grid-template-columns: minmax(0,54fr) minmax(0,46fr); }
  .obtino-proof__card{ padding: 22px 24px 20px; }
}
@media (max-width: 900px){
  .obtino-proof{
    grid-template-columns: 1fr;
    row-gap: 34px;
    margin-top: 50px;
  }
  .obtino-proof__frame{ max-width: 430px; }   /* shorter map, no empty scroll area */
  .obtino-proof__cards{ gap: 12px; }
}
@media (max-width: 560px){
  /* Full-bleed on phones: a wider map is the only honest way to separate two
     markers 620 km apart into independently tappable targets. */
  .obtino-proof__frame{
    max-width: none;
    width: calc(100% + 2 * var(--gutter, 24px));
    margin-inline: calc(-1 * var(--gutter, 24px));
  }
  .obtino-proof__card{ padding: 20px 20px 18px; }
  .obtino-proof__head{ flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 14px; }
  .obtino-proof__where{ white-space: normal; }
  .obtino-proof__body{ flex-direction: column; align-items: stretch; gap: 20px; }
  .obtino-proof__metrics{ grid-auto-flow: row; gap: 16px; }
  .obtino-proof__metric--secondary{ padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--pm-line); width: 100%; }
  .obtino-proof__metric strong{ font-size: 46px; }
  .obtino-proof__metric--secondary strong{ font-size: 24px; }
  .obtino-proof__pin{ width: 44px; height: 44px; }
  .obtino-proof__place{ font-size: 13px; padding: 3px 7px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .obtino-proof *{ transition: none !important; }
  .obtino-proof__card::before{ transform: none; }
  .obtino-proof__dot::after{ transform: none; }
}
.motion-disabled .obtino-proof *{ transition: none !important; }
.motion-disabled .obtino-proof__card::before,
.motion-disabled .obtino-proof__dot::after{ transform: none; }

/* Narrow phones: the two markers sit ~36px apart, so shrink the targets
   just enough that their hit areas stay disjoint. */
@media (max-width: 360px){
  .obtino-proof__pin{ width: 38px; height: 38px; }
}
