/* =========================================
   Lt3meve • User Testing v3 (ut3-*)
   Two-up Before and After, icon badges,
   image-fit, unified yellow bullets, responsive
========================================= */

/* Tokens */
.ut3-section{
  /* colors */
  --ink-900:#1f1f1f;
  --ink-700:#2b3147;
  --ink-500:#5a6273;

  --blue:#398FBA;      /* brand blue */
  --deep:#165C7D;      /* deep primary */
  --gold:#F2B134;      /* saffron gold */
  --off:#F9F8F6;
  --white:#fff;

  /* layout */
  --radius:16px;
  --radius-lg:20px;
  --shadow:0 10px 24px rgba(0,0,0,.10);
  --rail:1160px;
  --pad:clamp(16px,4vw,48px);

  /* type */
  --h2:clamp(28px,4.6vw,40px);
  --h3:clamp(18px,3vw,22px);
  --h4:14px;
  --body:clamp(15px,2.2vw,17px);
}

/* Section shell */
.ut3-section{
  padding: clamp(36px,5vw,72px) 0;
  color: var(--ink-900);
}
.ut3-rail{
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Section header */
.ut3-head{
  background: var(--white);
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05) inset, 0 10px 18px rgba(0,0,0,.06);
}
.ut3-head h2{
  margin: 0 0 6px;
  font: 800 var(--h2)/1.2 "Montserrat", system-ui, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink-900);
}
.ut3-lede{
  margin: 0;
  font: 500 var(--body)/1.6 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink-700);
  max-width: 72ch;
}

/* Round block */
.ut3-round{
  margin-top: clamp(18px,3vw,28px);
  background: var(--white);
  border: 1px solid #e8edf2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(16px,2.6vw,22px);
}
.ut3-round + .ut3-round{
  margin-top: clamp(16px,2.6vw,22px);
}

.ut3-round-head{
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.ut3-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font: 700 13px/1 "Montserrat", system-ui, sans-serif;
  color: var(--deep);
  background: #eef6fb;
  border: 1px solid var(--blue);
  padding: 8px 10px;
  border-radius: 999px;
}
.ut3-round-title{
  margin: 0;
  font: 700 var(--h3)/1.25 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink-900);
}

/* Before and After pair */
.ut3-pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px,2.2vw,18px);
  align-items: start;
}
@media (max-width: 860px){
  .ut3-pair{ grid-template-columns: 1fr; }
}

/* Snapshot card */
.ut3-snap{
  position: relative;
  display: grid;
  grid-template-rows: auto auto; /* img + optional caption */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #edf2f6;
  background: #f8fbfd;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}

/* Image fit, no cropping */
.ut3-snap img{
  width: 100%;
  height: clamp(200px, 28vw, 360px);
  object-fit: contain;       /* show full image */
  object-position: center;
  background: #fff;          /* letterbox area */
  aspect-ratio: auto;        /* override any earlier ratio rules */
}

/* Optional caption */
.ut3-cap{
  margin: 0;
  padding: 10px 12px;
  font: 600 12px/1.3 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink-700);
  background: #fff;
  border-top: 1px solid #edf2f6;
}

/* Badges with icons, same position on both */
.ut3-tag{
  position: absolute;
  top: 10px;
  left: 10px;                /* both top-left for consistent anchor */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 12px/1 "IBM Plex Sans", system-ui, sans-serif;
  padding: 6px 8px;
  border-radius: 999px;
  user-select: none;
  pointer-events: none;
  border: 1px solid;
  background: #fff;
}
.ut3-ico{
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}
.ut3-tag--before{
  color: #C43B36;                            /* red X */
  border-color: rgba(196,59,54,.35);
  background: rgba(196,59,54,.08);
}
.ut3-tag--after{
  color: #1E8E4A;                            /* green check */
  border-color: rgba(30,142,74,.35);
  background: rgba(30,142,74,.08);
}

/* Findings and changes blocks */
.ut3-details{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px,2vw,18px);
  margin-top: clamp(12px,2vw,18px);
  line-height: 1.7;
}
@media (max-width: 860px){
  .ut3-details{ grid-template-columns: 1fr; }
}
.ut3-block{
  background: #fcfdff;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  padding: 12px 14px;
}
.ut3-block h4{
  margin: 0 0 6px;
  font: 700 var(--h4)/1.3 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink-900);
}

/* Unified yellow points for all lists */
.ut3-block ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
  font: 500 var(--body)/1.55 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink-700);
}
.ut3-block ul li{
  position: relative;
  padding-left: 22px;
}
.ut3-block ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;              /* align with first line of text */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 1px rgba(0,0,0,.16);
}

/* Keep class name for semantics, inherits the same bullet style */
.ut3-list-check{
  list-style: none;
  padding-left: 0;
}

/* Footer actions */
.ut3-foot{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(18px,3vw,28px);
}
.ut3-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font: 700 14px/1 "IBM Plex Sans", system-ui, sans-serif;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.ut3-btn-primary{
  color: #fff;
  background: linear-gradient(180deg, #1b6f96 0%, #165C7D 100%);
  border-color: #0f4961;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 18px rgba(22,92,125,.22);
}
.ut3-btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 22px rgba(22,92,125,.28);
}
.ut3-btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255,255,255,.20) inset, 0 8px 14px rgba(22,92,125,.22);
}
.ut3-btn-primary:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.ut3-btn-secondary{
  color: var(--deep);
  background: #fff;
  border-color: var(--deep);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.ut3-btn-secondary:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.ut3-btn-secondary:active{ transform: translateY(0); }
.ut3-btn-secondary:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Hover polish */
@media (hover:hover){
  .ut3-snap{
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .ut3-snap:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.14);
  }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .ut3-snap,
  .ut3-btn{
    transition: none !important;
  }
}

/* =========================
   Improved Tabs (centered, 10px radius)
========================= */

/* Tabs wrapper, centered */
.ut3-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: clamp(16px, 3vw, 24px) auto;
  background: #fff;
  border: 1px solid #e0e5eb;
  border-radius: 10px;
  padding: 6px;
  max-width: max-content;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* Individual tab button */
.ut3-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 20px;
  border-radius: 8px;
  font: 600 15px/1 "IBM Plex Sans", system-ui, sans-serif;
  color: #2b3147; /* ink-700 */
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color .2s ease, background .2s ease;
}
.ut3-tab[aria-selected="true"] {
  color: #fff;
}
.ut3-tab:focus-visible {
  outline: 2px solid #f2c14e;
  outline-offset: 2px;
}

/* Ink highlight for active tab */
.ut3-tab-ink {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  width: calc(50% - 4px); /* two tabs */
  background: linear-gradient(180deg, #FF6C63 0%, #FF6C63 100%);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 12px rgba(22,92,125,.2);
  transition: transform .25s ease;
  will-change: transform;
}

/* Panels */
.ut3-panel[hidden] { display: none; }
.ut3-panel { margin: 0; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ut3-tab-ink { transition: none; }
}
