.kdpig-wrap{
  --orange:#F1641E;
  --orange-dark:#D94F0D;
  --cream:#FFF9F4;
  --ink:#14213D;
  --muted:#5C6573;
  --line:#E8DED7;
  --white:#FFFFFF;
  --soft:#FFF0E7;
  width:100%;
  margin:0;
  padding:0 0 52px;
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  background:var(--cream);
}
.kdpig-wrap *{box-sizing:border-box}

/* Full-width hero */
.kdpig-hero{
  width:100%;
  background:linear-gradient(180deg,#FFFDFB 0%,#FFF7F0 100%);
  border-top:1px solid #F3E3D8;
  border-bottom:1px solid #F3E3D8;
}
.kdpig-hero-inner{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  min-height:330px;
  padding:26px clamp(18px,4vw,64px) 28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,540px);
  gap:28px;
  align-items:center;
}
.kdpig-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#FFEBDD;
  color:#E65316;
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
}
.kdpig-hero h2{
  margin:14px 0 12px;
  font-size:clamp(40px,5.5vw,70px);
  line-height:.98;
  letter-spacing:-2px;
}
.kdpig-hero h2 span{color:var(--orange)}
.kdpig-intro{
  max-width:780px;
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}
.kdpig-hero-art{text-align:center}
.kdpig-hero-art img{
  width:min(100%,620px);
  height:auto;
  display:inline-block;
}

/* Boxed content */
.kdpig-content{
  width:100%;
  max-width:1600px;
  margin:24px auto 0;
  padding:0 clamp(16px,3vw,42px);
}
.kdpig-boxed{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 8px 26px rgba(30,36,48,.06);
}

.kdpig-panel{padding:24px clamp(18px,2.5vw,32px) 26px}
.kdpig-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--orange-dark);
  font-weight:900;
  font-size:17px;
  margin-bottom:20px;
}
.kdpig-title-star{color:#F1A52B;font-size:22px}
.kdpig-steps,
.kdpig-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
.kdpig-step-head{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:14px;
  min-width:0;
}
.kdpig-step-head span{font-size:20px}
.kdpig-step-head strong{font-weight:800;white-space:nowrap}
.kdpig-field select{
  width:100%;
  height:50px;
  border:1px solid #F0D6C9;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  padding:0 13px;
  font:inherit;
  font-size:15px;
}
.kdpig-field select:focus{
  outline:2px solid var(--orange);
  outline-offset:1px;
}
.kdpig-generate-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin-top:22px;
}
.kdpig-primary,
.kdpig-surprise,
.kdpig-refresh,
.kdpig-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  border-radius:12px;
  min-height:48px;
  padding:0 20px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  line-height:1;
  text-align:center;
}
.kdpig-primary{
  background:var(--orange);
  color:#fff;
  border:1px solid var(--orange);
  min-width:285px;
}
.kdpig-primary:hover{
  background:var(--orange-dark);
  border-color:var(--orange-dark);
}
.kdpig-surprise{
  background:#fff;
  color:var(--ink);
  border:1px solid #F0C7B4;
  min-width:240px;
}
.kdpig-surprise:hover{
  color:var(--orange);
  background:#FFF7F2;
  border-color:var(--orange);
}

.kdpig-results-section{
  margin-top:24px;
  padding:22px;
}
.kdpig-result-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:14px;
}
.kdpig-result-heading h3{
  margin:0 0 3px;
  font-size:21px;
}
.kdpig-result-heading span{
  font-size:13px;
  color:var(--muted);
}
.kdpig-refresh{
  min-height:42px;
  background:#fff;
  border:1px solid #F0C7B4;
  color:var(--orange-dark);
  font-size:13px;
}
.kdpig-refresh:hover{
  color:var(--orange);
  background:#FFF7F2;
  border-color:var(--orange);
}

.kdpig-ideas{display:grid;gap:14px}
.kdpig-idea{
  width:100%;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 118px;
  gap:22px;
  align-items:start;
  border:1px solid var(--line);
  border-left:4px solid var(--orange);
  border-radius:16px;
  padding:22px 22px 18px;
  background:#fff;
}
.kdpig-idea-main{min-width:0}
.kdpig-idea h4{
  margin:8px 0 9px;
  font-size:25px;
  line-height:1.15;
}
.kdpig-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#FFF0D9;
  color:#F1641E;
  font-size:11px;
  font-weight:900;
}
.kdpig-tags{display:flex;flex-wrap:wrap;gap:7px}
.kdpig-tag{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:#F6F2FF;
  color:#4C37A5;
  font-size:11px;
  font-weight:800;
}
.kdpig-tag:nth-child(2){background:#EAF8EF;color:#277A40}
.kdpig-tag:nth-child(3){background:#EAF5FD;color:#1B6C9D}
.kdpig-tag:nth-child(4){background:#FDEDE7;color:#C84E23}
.kdpig-tag:nth-child(5){background:#F2EAFF;color:#6B43A8}
.kdpig-tag:nth-child(6){background:#FFF3D7;color:#9A6511}
.kdpig-description{
  margin:12px 0 16px;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}
.kdpig-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:16px;
}
.kdpig-metric{display:flex;align-items:center;gap:9px;min-width:0}
.kdpig-metric-icon{
  width:40px;height:40px;flex:0 0 40px;border-radius:50%;
  background:#F2F8FE;display:flex;align-items:center;justify-content:center;font-size:18px;
}
.kdpig-metric:nth-child(2) .kdpig-metric-icon{background:#FFF6E3}
.kdpig-metric:nth-child(3) .kdpig-metric-icon{background:#ECFBF1}
.kdpig-metric:nth-child(4) .kdpig-metric-icon{background:#F4ECFF}
.kdpig-metric strong{display:block;font-size:15px;white-space:nowrap}
.kdpig-metric span{display:block;font-size:11px;color:var(--muted);margin-top:2px}

.kdpig-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1.2fr;
  gap:12px;
  align-items:stretch;
}
.kdpig-action{width:100%;min-height:48px;font-size:14px}
.kdpig-action.kdpig-outline{
  background:#fff;
  color:var(--ink);
  border:1px solid #F0C7B4;
}
.kdpig-action.kdpig-outline:hover{
  background:#FFF8F4;
  color:var(--orange);
  border-color:var(--orange);
}
.kdpig-action.kdpig-build{
  background:var(--orange);
  color:#fff;
  border:1px solid var(--orange);
}
.kdpig-action.kdpig-build:hover{
  background:var(--orange-dark);
  border-color:var(--orange-dark);
}

.kdpig-score{
  width:118px;
  min-height:96px;
  padding:12px 8px;
  border:1px solid #F0D6C9;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#fff;
}
.kdpig-score .star{color:#F4A328;font-size:24px;line-height:1}
.kdpig-score strong{font-size:22px;line-height:1.1}
.kdpig-score span:last-child{font-size:11px;color:var(--muted);margin-top:7px}

/* Expanders */
.kdpig-builder{
  grid-column:1 / 3;
  border-top:1px solid var(--line);
  padding-top:14px;
  display:none;
}
.kdpig-builder.open{display:block}

.kdpig-builder-panel,
.kdpig-build-panel{
  background:#FFFBF8;
  border:1px solid #F1DDD2;
  border-radius:14px;
  padding:14px;
}
.kdpig-builder-panel h5,
.kdpig-build-panel h5{
  margin:0 0 5px;
  font-size:17px;
}
.kdpig-meta{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

/* Blueprint uses two columns */
.kdpig-blueprint-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.kdpig-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
}
.kdpig-box-title{font-weight:900;margin-bottom:5px;font-size:13px}
.kdpig-box p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-size:12px;
}

/* Compact build-plan cards */
.kdpig-plan{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.kdpig-plan-step{
  display:flex;
  gap:8px;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px;
  min-height:74px;
}
.kdpig-plan-number{
  width:23px;
  height:23px;
  flex:0 0 23px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--soft);
  color:var(--orange);
  font-size:11px;
  font-weight:900;
}
.kdpig-plan-step strong{display:block;font-size:12px}
.kdpig-plan-step p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}
.kdpig-build-panel .kdpig-box{margin-top:10px}

.kdpig-empty{
  background:#fff;
  border:1px dashed var(--line);
  border-radius:14px;
  padding:28px;
  text-align:center;
  color:var(--muted);
}
.kdpig-cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:18px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
}
.kdpig-cta h3{margin:0 0 5px;font-size:18px}
.kdpig-cta p{margin:0;color:var(--muted);line-height:1.45}

@media(max-width:1050px){
  .kdpig-steps,.kdpig-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kdpig-plan{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .kdpig-blueprint-grid{grid-template-columns:1fr !important}
  .kdpig-hero-inner{grid-template-columns:1fr}
  .kdpig-hero-art{text-align:center}
  .kdpig-idea{grid-template-columns:1fr}
  .kdpig-score{
    width:100%;min-height:72px;flex-direction:row;gap:8px;
  }
  .kdpig-score span:last-child{margin-top:0}
  .kdpig-builder{grid-column:1}
  .kdpig-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kdpig-blueprint-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .kdpig-steps,.kdpig-grid{grid-template-columns:1fr 1fr}
  .kdpig-generate-row,.kdpig-cta{flex-direction:column}
  .kdpig-primary,.kdpig-surprise{width:100%;min-width:0}
  .kdpig-result-heading{align-items:flex-start;flex-direction:column}
  .kdpig-actions{grid-template-columns:1fr}
  .kdpig-plan{grid-template-columns:1fr}
}
@media(max-width:380px){
  .kdpig-steps,.kdpig-grid{grid-template-columns:1fr}
  .kdpig-metrics{grid-template-columns:1fr}
}

/* Professional calculation cards */
.kdpig-score small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  cursor:help;
}
.kdpig-metric span em{
  font-style:normal;
  cursor:help;
  color:var(--orange);
}

/* Keep the blueprint panels in one row on desktop. */
.kdpig-blueprint-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:12px !important;
  width:100%;
}
.kdpig-blueprint-grid > .kdpig-box{
  width:100%;
  min-width:0;
  margin:0 !important;
}

/* Compact professional expansion panels. */
.kdpig-builder-panel,
.kdpig-build-panel{
  width:100%;
  padding:14px !important;
}
.kdpig-builder .kdpig-box{
  min-height:108px;
}

/* Blueprint + Build This Product stay side-by-side in one row on desktop. */
.kdpig-expansion-row{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  width:100%;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.kdpig-expansion-row .kdpig-builder{
  display:none;
  border-top:0;
  padding-top:0;
  min-width:0;
}
.kdpig-expansion-row .kdpig-builder.open{
  display:block;
}
.kdpig-expansion-row .kdpig-builder-panel,
.kdpig-expansion-row .kdpig-build-panel{
  height:100%;
}
@media(max-width:760px){
  .kdpig-expansion-row{
    grid-template-columns:1fr;
  }
}

/* Final mobile layout: exactly like desktop — label above selector. */
@media (max-width:700px){
  .kdpig-form-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .kdpig-field{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
  }

  .kdpig-field-label{
    display:flex !important;
    width:100% !important;
    min-height:28px !important;
    margin:0 0 8px !important;
    padding:0 !important;
    align-items:center !important;
    gap:7px !important;
    white-space:normal !important;
  }

  .kdpig-field-label span{flex:0 0 auto !important}

  .kdpig-field select{
    display:block !important;
    width:100% !important;
    height:50px !important;
    min-height:50px !important;
    margin:0 !important;
  }
}

@media (max-width:460px){
  .kdpig-form-grid{grid-template-columns:1fr !important;gap:14px !important}
  .kdpig-field-label{font-size:13px !important;margin-bottom:7px !important}
  .kdpig-field select{height:46px !important;min-height:46px !important;font-size:14px !important}
}

/* FINAL: each field owns its label and selector. */
.kdpig-form-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;width:100%!important}
.kdpig-field{display:block!important;min-width:0!important;width:100%!important}
.kdpig-field-label{display:flex!important;align-items:center!important;gap:7px!important;width:100%!important;min-height:28px!important;margin:0 0 8px!important;line-height:1.25!important}
.kdpig-field-label span{flex:0 0 auto!important;line-height:1!important}
.kdpig-field-label strong{font-weight:800!important}
.kdpig-field select{display:block!important;width:100%!important;min-width:0!important;height:50px!important;margin:0!important}
@media(max-width:1050px){.kdpig-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.kdpig-form-grid{grid-template-columns:1fr!important;gap:16px!important}.kdpig-field{padding:0!important;margin:0!important;border:0!important;background:transparent!important}.kdpig-field-label{margin-bottom:8px!important}.kdpig-field select{height:50px!important;min-height:50px!important}}
@media(max-width:460px){.kdpig-form-grid{gap:14px!important}.kdpig-field-label{font-size:13px!important;margin-bottom:7px!important}.kdpig-field select{height:46px!important;min-height:46px!important;font-size:14px!important}}
